Package com.basistech.rosette.dm
Class TranslatedData
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.TranslatedData
- All Implemented Interfaces:
Serializable
A translation of the text. "Translation" may include script conversion,
for example the original text may be Traditional Chinese, and the
translation may be Simplified Chinese.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class for TranslatedData. -
Field Summary
Fields inherited from class com.basistech.rosette.dm.BaseAttribute
extendedProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the confidence value for this translation, nor null if there is none.com.basistech.util.TextDomain
Returns the domain for this object.Returns the translation for this object.protected com.google.common.base.MoreObjects.ToStringHelper
Methods inherited from class com.basistech.rosette.dm.BaseAttribute
getExtendedProperties, listOrNull, setExtendedProperty, toString
-
Constructor Details
-
TranslatedData
-
-
Method Details
-
getDomain
public com.basistech.util.TextDomain getDomain()Returns the domain for this object.- Returns:
- the domain for this object
-
getTranslation
Returns the translation for this object.- Returns:
- the translation for this object
-
getConfidence
Returns the confidence value for this translation, nor null if there is none.- Returns:
- the confidence value for this translation, or null if there is none
-
toStringHelper
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()- Overrides:
toStringHelper
in classBaseAttribute
-