DominantLanguageDocument¶
- class oci.ai_language.models.DominantLanguageDocument(**kwargs)¶
Bases:
objectThe document details for language detect call.
Methods:
__init__(**kwargs)Initializes a new DominantLanguageDocument object with values from keyword arguments.
Attributes:
[Required] Gets the key of this DominantLanguageDocument.
[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.
- property key¶
[Required] Gets the key of this DominantLanguageDocument. Document unique identifier defined by the user.
- Returns
The key of this DominantLanguageDocument.
- Return type
str
- property text¶
[Required] Gets the text of this DominantLanguageDocument. Document text for detect language.
- Returns
The text of this DominantLanguageDocument.
- Return type
str