MLKitEntityExtraction 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
-
-
获取配置了指定模型标识符的 EntityExtractorRemoteModel
实例。
此模型可用于通过调用 download(_:)
API 来触发下载
ModelManager
起。
EntityExtractorRemoteModel
在内部使用 ModelManager
。下载时
EntityExtractorRemoteModel
,系统会发布针对RemoteModel
的通知。
如需验证此类通知是否属于某个 EntityExtractorRemoteModel
,请检查
用户信息字典中的 ModelDownloadUserInfoKeyRemoteModel
字段包含一个对象
类型为 EntityExtractorRemoteModel
。
返回值
一个 EntityExtractorRemoteModel
实例。
-
声明
Objective-C
- (nonnull instancetype)init;
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eMLKEntityExtractionRemoteModel is an entity extraction model stored remotely and downloaded for on-device use.\u003c/p\u003e\n"],["\u003cp\u003eIt's identified by a unique model identifier and managed using \u003ccode\u003eModelManager\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can get an instance of the model and trigger a download using the provided methods.\u003c/p\u003e\n"],["\u003cp\u003eModel download notifications are posted for \u003ccode\u003eRemoteModel\u003c/code\u003e and can be verified using the \u003ccode\u003eModelDownloadUserInfoKeyRemoteModel\u003c/code\u003e field.\u003c/p\u003e\n"]]],[],null,["# MLKitEntityExtraction Framework Reference\n\nMLKEntityExtractionRemoteModel\n==============================\n\n\n @interface MLKEntityExtractionRemoteModel : ../Classes/MLKRemoteModel.html\n\nAn entity extraction model that is stored remotely on the server and downloaded on the device.\n- `\n ``\n ``\n `\n\n ### [modelIdentifier](#/c:objc(cs)MLKEntityExtractionRemoteModel(py)modelIdentifier)\n\n `\n ` \n The model identifier of this model. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) ../Type-Definitions.html#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier _Nonnull modelIdentifier;\n\n- `\n ``\n ``\n `\n\n ### [+entityExtractorRemoteModelWithIdentifier:](#/c:objc(cs)MLKEntityExtractionRemoteModel(cm)entityExtractorRemoteModelWithIdentifier:)\n\n `\n ` \n Gets an instance of `EntityExtractorRemoteModel` configured with the given model identifier.\n This model can be used to trigger a download by calling the `download(_:)` API\n from `ModelManager`.\n\n `EntityExtractorRemoteModel` uses `ModelManager` internally. When downloading\n an `EntityExtractorRemoteModel`, there will be a notification posted for a `RemoteModel`.\n To verify if such notifications belong to an `EntityExtractorRemoteModel`, check that the\n `ModelDownloadUserInfoKeyRemoteModel` field in the user info dictionary contains an object\n of type `EntityExtractorRemoteModel` . \n\n #### Declaration\n\n Objective-C \n\n + (nonnull MLKEntityExtractionRemoteModel *)\n entityExtractorRemoteModelWithIdentifier:\n (nonnull ../Type-Definitions.html#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier)modelIdentifier;\n\n #### Parameters\n\n |-------------------------|------------------------------------|\n | ` `*modelIdentifier*` ` | The model identifier of the model. |\n\n #### Return Value\n\n A `EntityExtractorRemoteModel` instance.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKEntityExtractionRemoteModel(im)init)\n\n `\n ` \n Unavailable. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;"]]