DominantLanguageDocumentResult¶
- class oci.ai_language.models.DominantLanguageDocumentResult(**kwargs)¶
Bases:
objectThe document response for language detect call.
Methods:
__init__(**kwargs)Initializes a new DominantLanguageDocumentResult object with values from keyword arguments.
Attributes:
[Required] Gets the key of this DominantLanguageDocumentResult.
[Required] Gets the languages of this DominantLanguageDocumentResult.
- __init__(**kwargs)¶
Initializes a new DominantLanguageDocumentResult 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 DominantLanguageDocumentResult.
languages (list[oci.ai_language.models.DetectedLanguage]) – The value to assign to the languages property of this DominantLanguageDocumentResult.
- property key¶
[Required] Gets the key of this DominantLanguageDocumentResult. Document unique identifier defined by the user.
- Returns
The key of this DominantLanguageDocumentResult.
- Return type
str
- property languages¶
[Required] Gets the languages of this DominantLanguageDocumentResult. List of detected languages with results sorted in descending order of the scores. Most likely language is on top.
- Returns
The languages of this DominantLanguageDocumentResult.
- Return type