DetectDominantLanguageResult

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

Bases: object

Result of language detect call.

Methods

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

Attributes

languages [Required] Gets the languages of this DetectDominantLanguageResult.
__init__(**kwargs)

Initializes a new DetectDominantLanguageResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:languages (list[oci.ai_language.models.DetectedLanguage]) – The value to assign to the languages property of this DetectDominantLanguageResult.
languages

[Required] Gets the languages of this DetectDominantLanguageResult. Results are sorted in descending order of the scores. Most likely language is on top. languages: [{“name”: “Bosnian”,”code”: “bs”,”score”: 0.6942308391868572},

{“name”: “Croatian”,”code”: “hr”,”score”: 0.15768701487872652}, {“name”: “Serbo-Croatian”,”code”: “sh”,”score”: 0.1480651612334694}]
Returns:The languages of this DetectDominantLanguageResult.
Return type:list[oci.ai_language.models.DetectedLanguage]