DetectedLanguage Class
DetectedLanguage contains the predicted language found in text, its confidence score, and its ISO 639-1 representation.
- Inheritance
-
azure.ai.textanalytics._dict_mixin.DictMixinDetectedLanguage
Constructor
DetectedLanguage(**kwargs: Any)
Methods
get | |
has_key | |
items | |
keys | |
update | |
values |
get
get(key: str, default: Any | None = None) -> Any
Parameters
Name | Description |
---|---|
key
Required
|
|
default
|
Default value: None
|
has_key
has_key(k: str) -> bool
Parameters
Name | Description |
---|---|
k
Required
|
|
items
items() -> Iterable[Tuple[str, Any]]
keys
keys() -> Iterable[str]
update
update(*args: Any, **kwargs: Any) -> None
values
values() -> Iterable[Any]
Attributes
confidence_score
A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true.
confidence_score: float
iso6391_name
A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr).
iso6391_name: str
name
Long name of a detected language (e.g. English, French).
name: str
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python