Class TranslatedData

java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.TranslatedData
All Implemented Interfaces:
Serializable

public class TranslatedData extends BaseAttribute implements 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:
  • Constructor Details

    • TranslatedData

      protected TranslatedData(com.basistech.util.TextDomain domain, String translation, Double confidence, Map<String,Object> extendedProperties)
  • Method Details

    • getDomain

      public com.basistech.util.TextDomain getDomain()
      Returns the domain for this object.
      Returns:
      the domain for this object
    • getTranslation

      public String getTranslation()
      Returns the translation for this object.
      Returns:
      the translation for this object
    • getConfidence

      public Double 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 class BaseAttribute