MLKitEntityExtraction 框架参考
-
-
声明
Objective-C
- (nonnull instancetype)init;
-
使用给定模型标识符创建 EntityExtractor 选项的新实例。
参数
modelIdentifier
|
解析以下网域中的地址和电话号码时使用的模型:
文本。
|
返回值
使用指定模型标识符配置的 MLKEntityExtractorOptions
的新实例。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["`MLKEntityExtractorOptions` provides configuration options for the `MLKEntityExtractor` used for parsing entities in text."],["It primarily focuses on specifying the model used for entity extraction through the `modelIdentifier` property."],["The `initWithModelIdentifier:` method allows creating an instance with a specific model identifier for parsing addresses and phone numbers."],["Default initialization using `init` is unavailable; you must use `initWithModelIdentifier:` for creating instances."]]],["`MLKEntityExtractorOptions` configures entity extraction. Key actions include setting the `modelIdentifier`, which determines the model used for parsing entities in text. The class offers a constructor, `-initWithModelIdentifier:`, to initialize a new instance with a specific model. The `modelIdentifier` property retrieves the chosen model. The default initializer, `-init`, is unavailable. The model is utilized to identify and extract entities like addresses and phone numbers.\n"]]