DetectedLanguage

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

Bases: object

Attributes to the detected language. Contains Language Name , Code, and Confidence Score.

Methods

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

Attributes

code [Required] Gets the code of this DetectedLanguage.
name [Required] Gets the name of this DetectedLanguage.
score [Required] Gets the score 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:
  • name (str) – The value to assign to the name property of this DetectedLanguage.
  • code (str) – The value to assign to the code property of this DetectedLanguage.
  • score (float) – The value to assign to the score property of this DetectedLanguage.
code

[Required] Gets the code of this DetectedLanguage. Detected language code with standard ISO 639-1. Example: en, fr, hi etc.

Returns:The code of this DetectedLanguage.
Return type:str
name

[Required] Gets the name of this DetectedLanguage. Language Name

Returns:The name of this DetectedLanguage.
Return type:str
score

[Required] Gets the score of this DetectedLanguage. Score or confidence for prediction.

Returns:The score of this DetectedLanguage.
Return type:float