TranslationDocumentResult¶
- class oci.ai_language.models.TranslationDocumentResult(**kwargs)¶
Bases:
objectThe document response for translation call.
Methods:
__init__(**kwargs)Initializes a new TranslationDocumentResult object with values from keyword arguments.
Attributes:
[Required] Gets the key of this TranslationDocumentResult.
[Required] Gets the source_language_code of this TranslationDocumentResult.
[Required] Gets the target_language_code of this TranslationDocumentResult.
[Required] Gets the translated_text of this TranslationDocumentResult.
- __init__(**kwargs)¶
Initializes a new TranslationDocumentResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
key (str) – The value to assign to the key property of this TranslationDocumentResult.
translated_text (str) – The value to assign to the translated_text property of this TranslationDocumentResult.
source_language_code (str) – The value to assign to the source_language_code property of this TranslationDocumentResult.
target_language_code (str) – The value to assign to the target_language_code property of this TranslationDocumentResult.
- property key¶
[Required] Gets the key of this TranslationDocumentResult. Document unique identifier defined by the user.
- Returns
The key of this TranslationDocumentResult.
- Return type
str
- property source_language_code¶
[Required] Gets the source_language_code of this TranslationDocumentResult. Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese - pt-BR Canadian French - fr-CA Croatian - hr Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr German - de Greek - el Hebrew - he Hungarian - hu Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl Portuguese - pt Romanian - ro Russian - ru Simplified Chinese - zh-CN Slovak - sk Slovenian - sl Spanish - es Swedish - sv Thai - th Traditional Chinese - zh-TW Turkish - tr Vietnamese - vi
- Returns
The source_language_code of this TranslationDocumentResult.
- Return type
str
- property target_language_code¶
[Required] Gets the target_language_code of this TranslationDocumentResult. Language code supported Arabic - ar Brazilian Portuguese - pt-BR Canadian French - fr-CA Croatian - hr Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr German - de Greek - el Hebrew - he Hungarian - hu Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl Portuguese - pt Romanian - ro Russian - ru Simplified Chinese - zh-CN Slovak - sk Slovenian - sl Spanish - es Swedish - sv Thai - th Traditional Chinese - zh-TW Turkish - tr Vietnamese - vi
- Returns
The target_language_code of this TranslationDocumentResult.
- Return type
str
- property translated_text¶
[Required] Gets the translated_text of this TranslationDocumentResult. Translated text in selected target language.
- Returns
The translated_text of this TranslationDocumentResult.
- Return type
str