mp.tasks.text.LanguageDetectorResult.LanguagePrediction
Stay organized with collections
Save and categorize content based on your preferences.
A language code and its probability.
View aliases
Main aliases
`mp.tasks.text.LanguageDetectorResult.Detection`
mp.tasks.text.LanguageDetectorResult.LanguagePrediction(
language_code: str, probability: float
)
Attributes |
language_code
|
An i18n language / locale code, e.g. "en" for English, "uz"
for Uzbek, "ja-Latn" for Japanese (romaji).
|
probability
|
The probability that the input text is in this language.
|
Methods
__eq__
__eq__(
other
)
Return self==value.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-16 UTC.
[null,null,["Last updated 2026-11-16 UTC."],[],[]]