Class Translation
java.lang.Object
com.azure.ai.translation.text.models.Translation
Translation result.
-
Method Summary
Modifier and TypeMethodDescriptionGet the alignment property: Alignment information.Get the sentLen property: Sentence boundaries in the input and output texts.getText()
Get the text property: A string giving the translated text.getTo()
Get the to property: A string representing the language code of the target language.Get the transliteration property: An object giving the translated text in the script specified by the toScript parameter.
-
Method Details
-
getTo
Get the to property: A string representing the language code of the target language.- Returns:
- the to 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.
-
getSentLen
Get the sentLen property: Sentence boundaries in the input and output texts.- Returns:
- the sentLen value.
-