Class TranslationText
java.lang.Object
com.azure.ai.translation.text.models.TranslationText
Translation result.
-
Method Summary
Modifier and TypeMethodDescriptionGet the alignment property: Alignment information.Get the sentenceBoundaries property: Sentence boundaries in the input and output texts.Get the targetLanguage property: A string representing the language code of the target language.getText()
Get the text property: A string giving the translated text.Get the transliteration property: An object giving the translated text in the script specified by the toScript parameter.
-
Method Details
-
getTargetLanguage
Get the targetLanguage property: A string representing the language code of the target language.- Returns:
- the targetLanguage value.
-
getText
Get the text property: A string giving the translated text.- Returns:
- the text value.
-
getTransliteration
Get the transliteration property: An object giving the translated text in the script specified by the toScript parameter.- Returns:
- the transliteration value.
-
getAlignment
Get the alignment property: Alignment information.- Returns:
- the alignment value.
-
getSentenceBoundaries
Get the sentenceBoundaries property: Sentence boundaries in the input and output texts.- Returns:
- the sentenceBoundaries value.
-