Class TranslationText

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

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

    • getTargetLanguage

      public String getTargetLanguage()
      Get the targetLanguage property: A string representing the language code of the target language.
      Returns:
      the targetLanguage 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.
    • getSentenceBoundaries

      public SentenceBoundaries getSentenceBoundaries()
      Get the sentenceBoundaries property: Sentence boundaries in the input and output texts.
      Returns:
      the sentenceBoundaries value.