Package com.azure.ai.translation.text.models
package com.azure.ai.translation.text.models
Package containing the data models for TextTranslation.
Text translation is a cloud-based REST API feature of the Translator service that uses neural
machine translation technology to enable quick and accurate source-to-target text translation
in real time across all supported languages.
The following methods are supported by the Text Translation feature:
Languages. Returns a list of languages supported by Translate, Transliterate, and Dictionary Lookup operations.
Translate. Renders single source-language text to multiple target-language texts with a single request.
Transliterate. Converts characters or letters of a source language to the corresponding characters or letters of a
target language.
Detect. Returns the source code language code and a boolean variable denoting whether the detected language is
supported for text translation and transliteration.
Dictionary lookup. Returns equivalent words for the source term in the target language.
Dictionary example Returns grammatical structure and context examples for the source term and target term pair.
-
ClassDescriptionBack Translation.Item containing break sentence result.An object describing the detected language.Dictionary Example.Dictionary Example element.Element containing the text with translation.Dictionary Lookup Element.Translation source term.Response for the languages API.Element containing the text for translation.Language Directionality.Translator languages scopes.Common properties of language script.Translator profanity actions.Translator profanity markers.An object returning sentence boundaries in the input and output texts.Properties ot the source dictionary language.Input text in the default script of the source language.Properties of the target dictionary language.Defines values for TextTranslationAudience.Translation text type.Alignment information object.Element containing the translated text.Options that may be passed when translating a text.The value of the translation property is a dictionary of (key, value) pairs.Translation result.Script definition with list of script into which given script can be translitered.Transliterated text element.The value of the transliteration property is a dictionary of (key, value) pairs.