Azure Text Translation client library for Python¶
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.
Use the Text Translation client library for Python to:
Return a list of languages supported by Translate, Transliterate, and Dictionary operations.
Render single source-language text to multiple target-language texts with a single request.
Convert text of a source language in letters of a different script.
Return equivalent words for the source term in the target language.
Return grammatical structure and context examples for the source term and target term pair.
Source code | Package (PyPI) | API reference documentation | Product documentation | Samples
Getting started¶
Prerequisites¶
Python 3.7 or later is required to use this package.
An existing Translator service or Cognitive Services resource.
Install the package¶
Install the Azure Text Translation client library for Python with pip:
pip install azure-ai-translation-text
Create a Translator service resource¶
You can create Translator resource following Create a Translator resource.
Authenticate the client¶
Interaction with the service using the client library begins with creating an instance of the TextTranslationClient class. You will need an API key or TokenCredential
to instantiate a client object. For more information regarding authenticating with cognitive services, see Authenticate requests to Translator Service.
Get an API key¶
You can get the endpoint
, API key
and Region
from the Cognitive Services resource or Translator service resource information in the Azure Portal.
Alternatively, use the Azure CLI snippet below to get the API key from the Translator service resource.
az cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>
Create a TextTranslationClient
using an API key and Region credential¶
Once you have the value for the API key and Region, create an AzureKeyCredential
. This will allow you to
update the API key without creating a new client.
With the value of the endpoint
, credential
and a region
, you can create the TextTranslationClient:
credential = AzureKeyCredential(apikey)
text_translator = TextTranslationClient(credential=credential, region=region)
Key concepts¶
TextTranslationClient
¶
A TextTranslationClient
is the primary interface for developers using the Text Translation client library. It provides both synchronous and asynchronous operations to access a specific use of text translator, such as get supported languages detection or text translation.
Input¶
A text element (string
), is a single unit of input to be processed by the translation models in the Translator service. Operations on TextTranslationClient
may take a single text element or a collection of text elements.
For text element length limits, maximum requests size, and supported text encoding see here.
Examples¶
The following section provides several code snippets using the client
created above, and covers the main features present in this client library. Although most of the snippets below make use of synchronous service calls, keep in mind that the Text Translation for Python library package supports both synchronous and asynchronous APIs.
Get Supported Languages¶
Gets the set of languages currently supported by other operations of the Translator.
try:
response = text_translator.get_supported_languages()
print(
f"Number of supported languages for translate operation: {len(response.translation) if response.translation is not None else 0}"
)
print(
f"Number of supported languages for transliterate operation: {len(response.transliteration) if response.transliteration is not None else 0}"
)
print(
f"Number of supported languages for dictionary operations: {len(response.dictionary) if response.dictionary is not None else 0}"
)
if response.translation is not None:
print("Translation Languages:")
for key, value in response.translation.items():
print(f"{key} -- name: {value.name} ({value.native_name})")
if response.transliteration is not None:
print("Transliteration Languages:")
for key, value in response.transliteration.items():
print(f"{key} -- name: {value.name}, supported script count: {len(value.scripts)}")
if response.dictionary is not None:
print("Dictionary Languages:")
for key, value in response.dictionary.items():
print(f"{key} -- name: {value.name}, supported target languages count: {len(value.translations)}")
except HttpResponseError as exception:
if exception.error is not None:
print(f"Error Code: {exception.error.code}")
print(f"Message: {exception.error.message}")
raise
For samples on using the languages
endpoint refer to more samples here.
Please refer to the service documentation for a conceptual discussion of languages.
Translate¶
Renders single source-language text to multiple target-language texts with a single request.
try:
to_language = ["cs", "es", "de"]
input_text_elements = ["This is a test"]
response = text_translator.translate(body=input_text_elements, to_language=to_language)
translation = response[0] if response else None
if translation:
detected_language = translation.detected_language
if detected_language:
print(
f"Detected languages of the input text: {detected_language.language} with score: {detected_language.score}."
)
for translated_text in translation.translations:
print(f"Text was translated to: '{translated_text.to}' and the result is: '{translated_text.text}'.")
except HttpResponseError as exception:
if exception.error is not None:
print(f"Error Code: {exception.error.code}")
print(f"Message: {exception.error.message}")
For samples on using the translate
endpoint refer to more samples here.
Please refer to the service documentation for a conceptual discussion of translate.
Transliterate¶
Converts characters or letters of a source language to the corresponding characters or letters of a target language.
try:
language = "zh-Hans"
from_script = "Hans"
to_script = "Latn"
input_text_elements = ["这是个测试。"]
response = text_translator.transliterate(
body=input_text_elements,
language=language,
from_script=from_script,
to_script=to_script,
)
transliteration = response[0] if response else None
if transliteration:
print(
f"Input text was transliterated to '{transliteration.script}' script. Transliterated text: '{transliteration.text}'."
)
except HttpResponseError as exception:
if exception.error is not None:
print(f"Error Code: {exception.error.code}")
print(f"Message: {exception.error.message}")
raise
For samples on using the transliterate
endpoint refer to more samples here.
Please refer to the service documentation for a conceptual discussion of transliterate.
Break Sentence¶
Identifies the positioning of sentence boundaries in a piece of text.
try:
include_sentence_length = True
to_language = ["cs"]
input_text_elements = ["The answer lies in machine translation. This is a test."]
response = text_translator.translate(
body=input_text_elements, to_language=to_language, include_sentence_length=include_sentence_length
)
translation = response[0] if response else None
if translation:
detected_language = translation.detected_language
if detected_language:
print(
f"Detected languages of the input text: {detected_language.language} with score: {detected_language.score}."
)
for translated_text in translation.translations:
print(f"Text was translated to: '{translated_text.to}' and the result is: '{translated_text.text}'.")
if translated_text.sent_len:
print(f"Source Sentence length: {translated_text.sent_len.src_sent_len}")
print(f"Translated Sentence length: {translated_text.sent_len.trans_sent_len}")
except HttpResponseError as exception:
if exception.error is not None:
print(f"Error Code: {exception.error.code}")
print(f"Message: {exception.error.message}")
For samples on using the break sentence
endpoint refer to more samples here.
Please refer to the service documentation for a conceptual discussion of break sentence.
Dictionary Lookup¶
Returns equivalent words for the source term in the target language.
try:
from_language = "en"
to_language = "es"
input_text_elements = ["fly"]
response = text_translator.lookup_dictionary_entries(
body=input_text_elements, from_language=from_language, to_language=to_language
)
dictionary_entry = response[0] if response else None
if dictionary_entry:
print(f"For the given input {len(dictionary_entry.translations)} entries were found in the dictionary.")
print(
f"First entry: '{dictionary_entry.translations[0].display_target}', confidence: {dictionary_entry.translations[0].confidence}."
)
except HttpResponseError as exception:
if exception.error is not None:
print(f"Error Code: {exception.error.code}")
print(f"Message: {exception.error.message}")
raise
For samples on using the dictionary lookup
endpoint refer to more samples here.
Please refer to the service documentation for a conceptual discussion of dictionary lookup.
Dictionary Examples¶
Returns grammatical structure and context examples for the source term and target term pair.
try:
from_language = "en"
to_language = "es"
input_text_elements = [DictionaryExampleTextItem(text="fly", translation="volar")]
response = text_translator.lookup_dictionary_examples(
body=input_text_elements, from_language=from_language, to_language=to_language
)
dictionary_entry = response[0] if response else None
if dictionary_entry:
print(f"For the given input {len(dictionary_entry.examples)} entries were found in the dictionary.")
print(
f"First example: '{dictionary_entry.examples[0].target_prefix}{dictionary_entry.examples[0].target_term}{dictionary_entry.examples[0].target_suffix}'."
)
except HttpResponseError as exception:
if exception.error is not None:
print(f"Error Code: {exception.error.code}")
print(f"Message: {exception.error.message}")
raise
For samples on using the dictionary examples
endpoint refer to more samples here.
Please refer to the service documentation for a conceptual discussion of dictionary examples.
Troubleshooting¶
When you interact with the Translator Service using the TextTranslator client library, errors returned by the Translator service correspond to the same HTTP status codes returned for REST API requests.
For example, if you submit a translation request without a target translate language, a 400
error is returned, indicating “Bad Request”.
You can find the different error codes returned by the service in the Service Documentation.
Provide Feedback¶
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
Next steps¶
More samples can be found under the samples directory.
Contributing¶
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Indices and tables¶
- azure.ai.translation.text package
TextTranslationClient
TextTranslationClient.close()
TextTranslationClient.find_sentence_boundaries()
TextTranslationClient.get_supported_languages()
TextTranslationClient.lookup_dictionary_entries()
TextTranslationClient.lookup_dictionary_examples()
TextTranslationClient.send_request()
TextTranslationClient.translate()
TextTranslationClient.transliterate()
- Subpackages
- azure.ai.translation.text.aio package
TextTranslationClient
TextTranslationClient.close()
TextTranslationClient.find_sentence_boundaries()
TextTranslationClient.get_supported_languages()
TextTranslationClient.lookup_dictionary_entries()
TextTranslationClient.lookup_dictionary_examples()
TextTranslationClient.send_request()
TextTranslationClient.translate()
TextTranslationClient.transliterate()
- azure.ai.translation.text.models package
BackTranslation
BackTranslation.as_dict()
BackTranslation.clear()
BackTranslation.copy()
BackTranslation.get()
BackTranslation.items()
BackTranslation.keys()
BackTranslation.pop()
BackTranslation.popitem()
BackTranslation.setdefault()
BackTranslation.update()
BackTranslation.values()
BackTranslation.display_text
BackTranslation.frequency_count
BackTranslation.normalized_text
BackTranslation.num_examples
BreakSentenceItem
BreakSentenceItem.as_dict()
BreakSentenceItem.clear()
BreakSentenceItem.copy()
BreakSentenceItem.get()
BreakSentenceItem.items()
BreakSentenceItem.keys()
BreakSentenceItem.pop()
BreakSentenceItem.popitem()
BreakSentenceItem.setdefault()
BreakSentenceItem.update()
BreakSentenceItem.values()
BreakSentenceItem.detected_language
BreakSentenceItem.sent_len
DetectedLanguage
DetectedLanguage.as_dict()
DetectedLanguage.clear()
DetectedLanguage.copy()
DetectedLanguage.get()
DetectedLanguage.items()
DetectedLanguage.keys()
DetectedLanguage.pop()
DetectedLanguage.popitem()
DetectedLanguage.setdefault()
DetectedLanguage.update()
DetectedLanguage.values()
DetectedLanguage.language
DetectedLanguage.score
DictionaryExample
DictionaryExample.as_dict()
DictionaryExample.clear()
DictionaryExample.copy()
DictionaryExample.get()
DictionaryExample.items()
DictionaryExample.keys()
DictionaryExample.pop()
DictionaryExample.popitem()
DictionaryExample.setdefault()
DictionaryExample.update()
DictionaryExample.values()
DictionaryExample.source_prefix
DictionaryExample.source_suffix
DictionaryExample.source_term
DictionaryExample.target_prefix
DictionaryExample.target_suffix
DictionaryExample.target_term
DictionaryExampleItem
DictionaryExampleItem.as_dict()
DictionaryExampleItem.clear()
DictionaryExampleItem.copy()
DictionaryExampleItem.get()
DictionaryExampleItem.items()
DictionaryExampleItem.keys()
DictionaryExampleItem.pop()
DictionaryExampleItem.popitem()
DictionaryExampleItem.setdefault()
DictionaryExampleItem.update()
DictionaryExampleItem.values()
DictionaryExampleItem.examples
DictionaryExampleItem.normalized_source
DictionaryExampleItem.normalized_target
DictionaryExampleTextItem
DictionaryExampleTextItem.as_dict()
DictionaryExampleTextItem.clear()
DictionaryExampleTextItem.copy()
DictionaryExampleTextItem.get()
DictionaryExampleTextItem.items()
DictionaryExampleTextItem.keys()
DictionaryExampleTextItem.pop()
DictionaryExampleTextItem.popitem()
DictionaryExampleTextItem.setdefault()
DictionaryExampleTextItem.update()
DictionaryExampleTextItem.values()
DictionaryExampleTextItem.text
DictionaryExampleTextItem.translation
DictionaryLookupItem
DictionaryLookupItem.as_dict()
DictionaryLookupItem.clear()
DictionaryLookupItem.copy()
DictionaryLookupItem.get()
DictionaryLookupItem.items()
DictionaryLookupItem.keys()
DictionaryLookupItem.pop()
DictionaryLookupItem.popitem()
DictionaryLookupItem.setdefault()
DictionaryLookupItem.update()
DictionaryLookupItem.values()
DictionaryLookupItem.display_source
DictionaryLookupItem.normalized_source
DictionaryLookupItem.translations
DictionaryTranslation
DictionaryTranslation.as_dict()
DictionaryTranslation.clear()
DictionaryTranslation.copy()
DictionaryTranslation.get()
DictionaryTranslation.items()
DictionaryTranslation.keys()
DictionaryTranslation.pop()
DictionaryTranslation.popitem()
DictionaryTranslation.setdefault()
DictionaryTranslation.update()
DictionaryTranslation.values()
DictionaryTranslation.back_translations
DictionaryTranslation.confidence
DictionaryTranslation.display_target
DictionaryTranslation.normalized_target
DictionaryTranslation.pos_tag
DictionaryTranslation.prefix_word
ErrorDetails
ErrorResponse
GetSupportedLanguagesResult
GetSupportedLanguagesResult.as_dict()
GetSupportedLanguagesResult.clear()
GetSupportedLanguagesResult.copy()
GetSupportedLanguagesResult.get()
GetSupportedLanguagesResult.items()
GetSupportedLanguagesResult.keys()
GetSupportedLanguagesResult.pop()
GetSupportedLanguagesResult.popitem()
GetSupportedLanguagesResult.setdefault()
GetSupportedLanguagesResult.update()
GetSupportedLanguagesResult.values()
GetSupportedLanguagesResult.dictionary
GetSupportedLanguagesResult.translation
GetSupportedLanguagesResult.transliteration
InputTextItem
LanguageDirectionality
LanguageDirectionality.capitalize()
LanguageDirectionality.casefold()
LanguageDirectionality.center()
LanguageDirectionality.count()
LanguageDirectionality.encode()
LanguageDirectionality.endswith()
LanguageDirectionality.expandtabs()
LanguageDirectionality.find()
LanguageDirectionality.format()
LanguageDirectionality.format_map()
LanguageDirectionality.index()
LanguageDirectionality.isalnum()
LanguageDirectionality.isalpha()
LanguageDirectionality.isascii()
LanguageDirectionality.isdecimal()
LanguageDirectionality.isdigit()
LanguageDirectionality.isidentifier()
LanguageDirectionality.islower()
LanguageDirectionality.isnumeric()
LanguageDirectionality.isprintable()
LanguageDirectionality.isspace()
LanguageDirectionality.istitle()
LanguageDirectionality.isupper()
LanguageDirectionality.join()
LanguageDirectionality.ljust()
LanguageDirectionality.lower()
LanguageDirectionality.lstrip()
LanguageDirectionality.maketrans()
LanguageDirectionality.partition()
LanguageDirectionality.removeprefix()
LanguageDirectionality.removesuffix()
LanguageDirectionality.replace()
LanguageDirectionality.rfind()
LanguageDirectionality.rindex()
LanguageDirectionality.rjust()
LanguageDirectionality.rpartition()
LanguageDirectionality.rsplit()
LanguageDirectionality.rstrip()
LanguageDirectionality.split()
LanguageDirectionality.splitlines()
LanguageDirectionality.startswith()
LanguageDirectionality.strip()
LanguageDirectionality.swapcase()
LanguageDirectionality.title()
LanguageDirectionality.translate()
LanguageDirectionality.upper()
LanguageDirectionality.zfill()
LanguageDirectionality.LEFT_TO_RIGHT
LanguageDirectionality.RIGHT_TO_LEFT
LanguageScript
LanguageScript.as_dict()
LanguageScript.clear()
LanguageScript.copy()
LanguageScript.get()
LanguageScript.items()
LanguageScript.keys()
LanguageScript.pop()
LanguageScript.popitem()
LanguageScript.setdefault()
LanguageScript.update()
LanguageScript.values()
LanguageScript.code
LanguageScript.dir
LanguageScript.name
LanguageScript.native_name
ProfanityAction
ProfanityAction.capitalize()
ProfanityAction.casefold()
ProfanityAction.center()
ProfanityAction.count()
ProfanityAction.encode()
ProfanityAction.endswith()
ProfanityAction.expandtabs()
ProfanityAction.find()
ProfanityAction.format()
ProfanityAction.format_map()
ProfanityAction.index()
ProfanityAction.isalnum()
ProfanityAction.isalpha()
ProfanityAction.isascii()
ProfanityAction.isdecimal()
ProfanityAction.isdigit()
ProfanityAction.isidentifier()
ProfanityAction.islower()
ProfanityAction.isnumeric()
ProfanityAction.isprintable()
ProfanityAction.isspace()
ProfanityAction.istitle()
ProfanityAction.isupper()
ProfanityAction.join()
ProfanityAction.ljust()
ProfanityAction.lower()
ProfanityAction.lstrip()
ProfanityAction.maketrans()
ProfanityAction.partition()
ProfanityAction.removeprefix()
ProfanityAction.removesuffix()
ProfanityAction.replace()
ProfanityAction.rfind()
ProfanityAction.rindex()
ProfanityAction.rjust()
ProfanityAction.rpartition()
ProfanityAction.rsplit()
ProfanityAction.rstrip()
ProfanityAction.split()
ProfanityAction.splitlines()
ProfanityAction.startswith()
ProfanityAction.strip()
ProfanityAction.swapcase()
ProfanityAction.title()
ProfanityAction.translate()
ProfanityAction.upper()
ProfanityAction.zfill()
ProfanityAction.DELETED
ProfanityAction.MARKED
ProfanityAction.NO_ACTION
ProfanityMarker
ProfanityMarker.capitalize()
ProfanityMarker.casefold()
ProfanityMarker.center()
ProfanityMarker.count()
ProfanityMarker.encode()
ProfanityMarker.endswith()
ProfanityMarker.expandtabs()
ProfanityMarker.find()
ProfanityMarker.format()
ProfanityMarker.format_map()
ProfanityMarker.index()
ProfanityMarker.isalnum()
ProfanityMarker.isalpha()
ProfanityMarker.isascii()
ProfanityMarker.isdecimal()
ProfanityMarker.isdigit()
ProfanityMarker.isidentifier()
ProfanityMarker.islower()
ProfanityMarker.isnumeric()
ProfanityMarker.isprintable()
ProfanityMarker.isspace()
ProfanityMarker.istitle()
ProfanityMarker.isupper()
ProfanityMarker.join()
ProfanityMarker.ljust()
ProfanityMarker.lower()
ProfanityMarker.lstrip()
ProfanityMarker.maketrans()
ProfanityMarker.partition()
ProfanityMarker.removeprefix()
ProfanityMarker.removesuffix()
ProfanityMarker.replace()
ProfanityMarker.rfind()
ProfanityMarker.rindex()
ProfanityMarker.rjust()
ProfanityMarker.rpartition()
ProfanityMarker.rsplit()
ProfanityMarker.rstrip()
ProfanityMarker.split()
ProfanityMarker.splitlines()
ProfanityMarker.startswith()
ProfanityMarker.strip()
ProfanityMarker.swapcase()
ProfanityMarker.title()
ProfanityMarker.translate()
ProfanityMarker.upper()
ProfanityMarker.zfill()
ProfanityMarker.ASTERISK
ProfanityMarker.TAG
SentenceBoundaries
SentenceBoundaries.as_dict()
SentenceBoundaries.clear()
SentenceBoundaries.copy()
SentenceBoundaries.get()
SentenceBoundaries.items()
SentenceBoundaries.keys()
SentenceBoundaries.pop()
SentenceBoundaries.popitem()
SentenceBoundaries.setdefault()
SentenceBoundaries.update()
SentenceBoundaries.values()
SentenceBoundaries.src_sent_len
SentenceBoundaries.trans_sent_len
SourceDictionaryLanguage
SourceDictionaryLanguage.as_dict()
SourceDictionaryLanguage.clear()
SourceDictionaryLanguage.copy()
SourceDictionaryLanguage.get()
SourceDictionaryLanguage.items()
SourceDictionaryLanguage.keys()
SourceDictionaryLanguage.pop()
SourceDictionaryLanguage.popitem()
SourceDictionaryLanguage.setdefault()
SourceDictionaryLanguage.update()
SourceDictionaryLanguage.values()
SourceDictionaryLanguage.dir
SourceDictionaryLanguage.name
SourceDictionaryLanguage.native_name
SourceDictionaryLanguage.translations
SourceText
TargetDictionaryLanguage
TargetDictionaryLanguage.as_dict()
TargetDictionaryLanguage.clear()
TargetDictionaryLanguage.copy()
TargetDictionaryLanguage.get()
TargetDictionaryLanguage.items()
TargetDictionaryLanguage.keys()
TargetDictionaryLanguage.pop()
TargetDictionaryLanguage.popitem()
TargetDictionaryLanguage.setdefault()
TargetDictionaryLanguage.update()
TargetDictionaryLanguage.values()
TargetDictionaryLanguage.code
TargetDictionaryLanguage.dir
TargetDictionaryLanguage.name
TargetDictionaryLanguage.native_name
TextType
TextType.capitalize()
TextType.casefold()
TextType.center()
TextType.count()
TextType.encode()
TextType.endswith()
TextType.expandtabs()
TextType.find()
TextType.format()
TextType.format_map()
TextType.index()
TextType.isalnum()
TextType.isalpha()
TextType.isascii()
TextType.isdecimal()
TextType.isdigit()
TextType.isidentifier()
TextType.islower()
TextType.isnumeric()
TextType.isprintable()
TextType.isspace()
TextType.istitle()
TextType.isupper()
TextType.join()
TextType.ljust()
TextType.lower()
TextType.lstrip()
TextType.maketrans()
TextType.partition()
TextType.removeprefix()
TextType.removesuffix()
TextType.replace()
TextType.rfind()
TextType.rindex()
TextType.rjust()
TextType.rpartition()
TextType.rsplit()
TextType.rstrip()
TextType.split()
TextType.splitlines()
TextType.startswith()
TextType.strip()
TextType.swapcase()
TextType.title()
TextType.translate()
TextType.upper()
TextType.zfill()
TextType.HTML
TextType.PLAIN
TranslatedTextAlignment
TranslatedTextAlignment.as_dict()
TranslatedTextAlignment.clear()
TranslatedTextAlignment.copy()
TranslatedTextAlignment.get()
TranslatedTextAlignment.items()
TranslatedTextAlignment.keys()
TranslatedTextAlignment.pop()
TranslatedTextAlignment.popitem()
TranslatedTextAlignment.setdefault()
TranslatedTextAlignment.update()
TranslatedTextAlignment.values()
TranslatedTextAlignment.proj
TranslatedTextItem
TranslatedTextItem.as_dict()
TranslatedTextItem.clear()
TranslatedTextItem.copy()
TranslatedTextItem.get()
TranslatedTextItem.items()
TranslatedTextItem.keys()
TranslatedTextItem.pop()
TranslatedTextItem.popitem()
TranslatedTextItem.setdefault()
TranslatedTextItem.update()
TranslatedTextItem.values()
TranslatedTextItem.detected_language
TranslatedTextItem.source_text
TranslatedTextItem.translations
TranslationLanguage
TranslationLanguage.as_dict()
TranslationLanguage.clear()
TranslationLanguage.copy()
TranslationLanguage.get()
TranslationLanguage.items()
TranslationLanguage.keys()
TranslationLanguage.pop()
TranslationLanguage.popitem()
TranslationLanguage.setdefault()
TranslationLanguage.update()
TranslationLanguage.values()
TranslationLanguage.dir
TranslationLanguage.name
TranslationLanguage.native_name
TranslationText
TranslationText.as_dict()
TranslationText.clear()
TranslationText.copy()
TranslationText.get()
TranslationText.items()
TranslationText.keys()
TranslationText.pop()
TranslationText.popitem()
TranslationText.setdefault()
TranslationText.update()
TranslationText.values()
TranslationText.alignment
TranslationText.sent_len
TranslationText.text
TranslationText.to
TranslationText.transliteration
TransliterableScript
TransliterableScript.as_dict()
TransliterableScript.clear()
TransliterableScript.copy()
TransliterableScript.get()
TransliterableScript.items()
TransliterableScript.keys()
TransliterableScript.pop()
TransliterableScript.popitem()
TransliterableScript.setdefault()
TransliterableScript.update()
TransliterableScript.values()
TransliterableScript.code
TransliterableScript.dir
TransliterableScript.name
TransliterableScript.native_name
TransliterableScript.to_scripts
TransliteratedText
TransliteratedText.as_dict()
TransliteratedText.clear()
TransliteratedText.copy()
TransliteratedText.get()
TransliteratedText.items()
TransliteratedText.keys()
TransliteratedText.pop()
TransliteratedText.popitem()
TransliteratedText.setdefault()
TransliteratedText.update()
TransliteratedText.values()
TransliteratedText.script
TransliteratedText.text
TransliterationLanguage
TransliterationLanguage.as_dict()
TransliterationLanguage.clear()
TransliterationLanguage.copy()
TransliterationLanguage.get()
TransliterationLanguage.items()
TransliterationLanguage.keys()
TransliterationLanguage.pop()
TransliterationLanguage.popitem()
TransliterationLanguage.setdefault()
TransliterationLanguage.update()
TransliterationLanguage.values()
TransliterationLanguage.name
TransliterationLanguage.native_name
TransliterationLanguage.scripts
- azure.ai.translation.text.aio package