DominantLanguageDocument

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

Bases: object

The document details for language detect call.

Methods

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

Attributes

key [Required] Gets the key of this DominantLanguageDocument.
text [Required] Gets the text of this DominantLanguageDocument.
__init__(**kwargs)

Initializes a new DominantLanguageDocument 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 DominantLanguageDocument.
  • text (str) – The value to assign to the text property of this DominantLanguageDocument.
key

[Required] Gets the key of this DominantLanguageDocument. Document unique identifier defined by the user.

Returns:The key of this DominantLanguageDocument.
Return type:str
text

[Required] Gets the text of this DominantLanguageDocument. Document text for detect language.

Returns:The text of this DominantLanguageDocument.
Return type:str