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

alias Gets the alias of this BatchLanguageTranslationDetails.
compartment_id Gets the compartment_id of this BatchLanguageTranslationDetails.
documents [Required] Gets the documents of this BatchLanguageTranslationDetails.
endpoint_id Gets the endpoint_id of this BatchLanguageTranslationDetails.
no_translate Gets the no_translate 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:
  • alias (str) – The value to assign to the alias property of this BatchLanguageTranslationDetails.
  • endpoint_id (str) – The value to assign to the endpoint_id property of this BatchLanguageTranslationDetails.
  • no_translate (list[str]) – The value to assign to the no_translate property of this BatchLanguageTranslationDetails.
  • 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.
alias

Gets the alias of this BatchLanguageTranslationDetails. Unique name to identify an endpoint to be used for inferencing

Returns:The alias of this BatchLanguageTranslationDetails.
Return type:str
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]
endpoint_id

Gets the endpoint_id of this BatchLanguageTranslationDetails. The endpoint that has to be used for inferencing.

Returns:The endpoint_id of this BatchLanguageTranslationDetails.
Return type:str
no_translate

Gets the no_translate of this BatchLanguageTranslationDetails. List of words not to be translated

Returns:The no_translate of this BatchLanguageTranslationDetails.
Return type:list[str]
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