//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.project.data/TranslationUnit
TranslationUnit
[jvm]
data class TranslationUnit(val segment: SegmentModel, val original: SegmentModel? = null, val similarity: Int = 0, val origin: String = "")
A pair of a source segment and a target segment with the same key is a translation unit. If this is a TM match, it has a similarity rate to another translation unit, based on the distance between the respective source segments.
Constructors
TranslationUnit | [jvm] constructor(segment: SegmentModel, original: SegmentModel? = null, similarity: Int = 0, origin: String = "") Create TranslationUnit |
Properties
Name | Summary |
---|---|
origin | [jvm] val origin: String origin if this is a match coming from the translation memory |
original | [jvm] val original: SegmentModel? = null source segment |
segment | [jvm] val segment: SegmentModel target segment |
similarity | [jvm] val similarity: Int = 0 similarity rate |