DominantLanguageDocumentResult

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

Bases: object

The document response for language detect call.

Methods

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

Attributes

key [Required] Gets the key of this DominantLanguageDocumentResult.
languages [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.
key

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

Returns:The key of this DominantLanguageDocumentResult.
Return type:str
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:list[oci.ai_language.models.DetectedLanguage]