DetectedLanguage

class oci.ai_document.models.DetectedLanguage(**kwargs)

Bases: object

The language detected in a document.

Methods

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

Attributes

confidence [Required] Gets the confidence of this DetectedLanguage.
language [Required] Gets the language of this DetectedLanguage.
__init__(**kwargs)

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

Parameters:
  • language (str) – The value to assign to the language property of this DetectedLanguage.
  • confidence (float) – The value to assign to the confidence property of this DetectedLanguage.
confidence

[Required] Gets the confidence of this DetectedLanguage. The confidence score between 0 and 1.

Returns:The confidence of this DetectedLanguage.
Return type:float
language

[Required] Gets the language of this DetectedLanguage. The document language, abbreviated according to the BCP 47 syntax.

Returns:The language of this DetectedLanguage.
Return type:str