<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/text/language_detector.py#L44-L55) |

A language code and its probability.

#### View aliases


**Main aliases**

\`mp.tasks.text.LanguageDetectorResult.LanguagePrediction\`

<br />

```python
mp.tasks.text.LanguageDetectorResult.Detection(
    language_code: str, probability: float
)
```

<br />

<br />

<br />

| ## 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. |

<br />

## Methods

### `__eq__`

```python
__eq__(
    other
)
```

Return self==value.