Stay organized with collections
Save and categorize content based on your preferences.
Language Identification
plat_ios
plat_android
With ML Kit's on-device language identification API, you can determine the
language of a string of text.
Language identification can be useful when working with user-provided text,
which often doesn't come with any language information.
iOS
Android
Key capabilities
Broad language support
|
Identifies over a hundred different languages. See the
complete list
.
|
Romanized text support
|
Identifies Arabic, Bulgarian, Greek, Hindi, Japanese, Russian, and
Chinese text in both native and romanized script.
|
Example results
Simple language identification
|
"My hovercraft is full of eels."
|
en
(English)
|
"Dao shan xue hai"
|
zh-Latn
(Latinized Chinese)
|
"ph'nglui mglw'nafh TensorFlow Google wgah'nagl fhtagn"
|
und
(undetermined)
|
Confidence distribution
|
"an amicable coup d'etat"
|
en
(0.52)
fr
(0.44)
ca
(0.03)
|
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-04-16 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]