Class Translation

java.lang.Object
com.azure.ai.translation.text.models.Translation

public final class Translation extends Object
Translation result.
  • Method Details

    • getTo

      public String getTo()
      Get the to property: A string representing the language code of the target language.
      Returns:
      the to value.
    • getText

      public String getText()
      Get the text property: A string giving the translated text.
      Returns:
      the text value.
    • getTransliteration

      public TransliteratedText getTransliteration()
      Get the transliteration property: An object giving the translated text in the script specified by the toScript parameter.
      Returns:
      the transliteration value.
    • getAlignment

      public TranslatedTextAlignment getAlignment()
      Get the alignment property: Alignment information.
      Returns:
      the alignment value.
    • getSentLen

      public SentenceLength getSentLen()
      Get the sentLen property: Sentence boundaries in the input and output texts.
      Returns:
      the sentLen value.