MLKitEntityExtraction Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
An entity extraction model that is stored remotely on the server and downloaded on the device.
-
The model identifier of this model.
-
Gets an instance of EntityExtractorRemoteModel
configured with the given model identifier.
This model can be used to trigger a download by calling the download(_:)
API
from ModelManager
.
EntityExtractorRemoteModel
uses ModelManager
internally. When downloading
an EntityExtractorRemoteModel
, there will be a notification posted for a RemoteModel
.
To verify if such notifications belong to an EntityExtractorRemoteModel
, check that the
ModelDownloadUserInfoKeyRemoteModel
field in the user info dictionary contains an object
of type EntityExtractorRemoteModel
.
Parameters
modelIdentifier
|
The model identifier of the model.
|
Return Value
A EntityExtractorRemoteModel
instance.
-
Declaration
Objective-C
- (nonnull instancetype)init;
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-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\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;"]]