MLKitLanguageID 框架参考
-
声明
Objective-C
@interface MLKIdentifiedLanguage : NSObject
-
LanguageIdentification
类,用于标识给定文本的主要语言或可能的语言。
声明
Objective-C
@interface MLKLanguageIdentification : NSObject
-
LanguageIdentification
的选项。
声明
Objective-C
@interface MLKLanguageIdentificationOptions : NSObject
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-20。
[null,null,["最后更新时间 (UTC):2024-09-20。"],[[["ML Kit provides three classes for language identification: `MLKIdentifiedLanguage`, `MLKLanguageIdentification`, and `MLKLanguageIdentificationOptions`."],["`MLKIdentifiedLanguage` represents a language identified from input text."],["`MLKLanguageIdentification` is used to identify the primary or potential languages of given text."],["`MLKLanguageIdentificationOptions` offers customization choices for the language identification process."]]],["The document outlines three classes for language identification in text. `MLKIdentifiedLanguage` represents a detected language. `MLKLanguageIdentification` identifies the primary or possible languages within a text. `MLKLanguageIdentificationOptions` allows for setting configuration options for the `LanguageIdentification` process. All three classes are available globally and are implemented using Objective-C, inheriting from `NSObject`. They are used in the iOS ML Kit for language identification tasks.\n"]]