DetectedLanguage¶
-
class
oci.ai_language.models.DetectedLanguage(**kwargs)¶ Bases:
objectAttributes 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 as per ISO 639-1 standard. Example: en, fr, hi etc.
Returns: The code of this DetectedLanguage. Return type: str
-
name¶ [Required] Gets the name of this DetectedLanguage. Full language name. Example: English, Hindi, and so on
Returns: The name of this DetectedLanguage. Return type: str
-
score¶ [Required] Gets the score of this DetectedLanguage. Score or confidence of detected language code. Example: 0.9999856066867399
Returns: The score of this DetectedLanguage. Return type: float
-