BatchLanguageTranslationDetails

class oci.ai_language.models.BatchLanguageTranslationDetails(**kwargs)

Bases: object

The documents details for translation call.

Methods

__init__(**kwargs) Initializes a new BatchLanguageTranslationDetails object with values from keyword arguments.

Attributes

compartment_id Gets the compartment_id of this BatchLanguageTranslationDetails.
documents [Required] Gets the documents of this BatchLanguageTranslationDetails.
target_language_code Gets the target_language_code of this BatchLanguageTranslationDetails.
__init__(**kwargs)

Initializes a new BatchLanguageTranslationDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • compartment_id (str) – The value to assign to the compartment_id property of this BatchLanguageTranslationDetails.
  • target_language_code (str) – The value to assign to the target_language_code property of this BatchLanguageTranslationDetails.
  • documents (list[oci.ai_language.models.TextDocument]) – The value to assign to the documents property of this BatchLanguageTranslationDetails.
compartment_id

Gets the compartment_id of this BatchLanguageTranslationDetails. The OCID of the compartment that calls the API, inference will be served from pre trained model

Returns:The compartment_id of this BatchLanguageTranslationDetails.
Return type:str
documents

[Required] Gets the documents of this BatchLanguageTranslationDetails. List of documents for translation.

Returns:The documents of this BatchLanguageTranslationDetails.
Return type:list[oci.ai_language.models.TextDocument]
target_language_code

Gets the target_language_code of this BatchLanguageTranslationDetails. 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 BatchLanguageTranslationDetails.
Return type:str