การระบุภาษา
plat_ios
plat_android

ด้วย API การระบุภาษาในอุปกรณ์ของ ML Kit คุณสามารถกำหนดภาษาของสตริงข้อความได้
การระบุภาษามีประโยชน์เมื่อทำงานกับข้อความที่ผู้ใช้ให้มา ซึ่งมักจะไม่ได้มาพร้อมกับข้อมูลภาษาใดๆ
iOS Android
ความสามารถที่สำคัญ
รองรับภาษาที่กว้างขวาง | ระบุกว่าร้อยภาษาที่แตกต่างกัน ดู รายการทั้งหมด |
รองรับข้อความโรมัน | ระบุข้อความภาษาอาหรับ บัลแกเรีย กรีก ฮินดี ญี่ปุ่น รัสเซีย และจีน ทั้งในภาษาดั้งเดิมและอักษรโรมัน |
ตัวอย่างผลลัพธ์
การระบุภาษาอย่างง่าย |
---|
"เรือชูชีพของฉันเต็มไปด้วยปลาไหล" | en (ภาษาอังกฤษ) |
“ต้าวซานเซว่ไห่” | zh-Latn (จีนละติน) |
"ph'nglui mglw'nafh TensorFlow Google wgah'nagl fhtagn" | und (ไม่ทราบแน่ชัด) |
กระจายความมั่นใจ |
---|
"รัฐประหารที่เป็นมิตร" | 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 2022-06-30 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]