com.google.mlkit.nl.languageid
Stay organized with collections
Save and categorize content based on your preferences.
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 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThe Language Identifier is used to identify the language of a given text.\u003c/p\u003e\n"],["\u003cp\u003eLanguage Identification provides access to the Language Identifier.\u003c/p\u003e\n"],["\u003cp\u003eIdentified Language represents a language detected by the identifier.\u003c/p\u003e\n"],["\u003cp\u003eLanguage Identification Options allow customization of the identification process.\u003c/p\u003e\n"],["\u003cp\u003eYou can create Language Identification Options using the dedicated builder class.\u003c/p\u003e\n"]]],["The content describes tools for language identification. Key components include `LanguageIdentifier`, a client for determining the language of text. `LanguageIdentification` serves as the entry point for obtaining a `LanguageIdentifier`. `IdentifiedLanguage` represents a detected language. `LanguageIdentificationOptions` configures the `LanguageIdentifier`, and `LanguageIdentificationOptions.Builder` constructs these options. These classes and interfaces work together to provide the functionality to analyze text and identify its language.\n"],null,["# com.google.mlkit.nl.languageid\n\n### Interfaces\n\n|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LanguageIdentifier](/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier) | A [LanguageIdentification](/android/reference/com/google/mlkit/nl/languageid/LanguageIdentification) client for identifying the language of a piece of text. |\n\n### Classes\n\n|----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [IdentifiedLanguage](/android/reference/com/google/mlkit/nl/languageid/IdentifiedLanguage) | A language identified by [LanguageIdentifier.identifyPossibleLanguages(String)](/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier#identifyPossibleLanguages(java.lang.String)). |\n| [LanguageIdentification](/android/reference/com/google/mlkit/nl/languageid/LanguageIdentification) | Entry point to get a [LanguageIdentifier](/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier) that identifies language for a given text input. |\n| [LanguageIdentificationOptions](/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions) | Options for [LanguageIdentifier](/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier) |\n| [LanguageIdentificationOptions.Builder](/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions.Builder) | Builder to create a [LanguageIdentificationOptions](/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions) instance. |"]]