AI-generated Key Takeaways
-
MLKEntityExtractionRemoteModel is an entity extraction model stored remotely and downloaded for on-device use.
-
It's identified by a unique model identifier and managed using
ModelManager. -
You can get an instance of the model and trigger a download using the provided methods.
-
Model download notifications are posted for
RemoteModeland can be verified using theModelDownloadUserInfoKeyRemoteModelfield.
MLKEntityExtractionRemoteModel
@interface MLKEntityExtractionRemoteModel : MLKRemoteModelAn entity extraction model that is stored remotely on the server and downloaded on the device.
-
The model identifier of this model.
Declaration
Objective-C
@property (nonatomic, readonly) MLKEntityExtractionModelIdentifier _Nonnull modelIdentifier; -
Gets an instance of
EntityExtractorRemoteModelconfigured with the given model identifier. This model can be used to trigger a download by calling thedownload(_:)API fromModelManager.EntityExtractorRemoteModelusesModelManagerinternally. When downloading anEntityExtractorRemoteModel, there will be a notification posted for aRemoteModel. To verify if such notifications belong to anEntityExtractorRemoteModel, check that theModelDownloadUserInfoKeyRemoteModelfield in the user info dictionary contains an object of typeEntityExtractorRemoteModel.Declaration
Objective-C
+ (nonnull MLKEntityExtractionRemoteModel *) entityExtractorRemoteModelWithIdentifier: (nonnull MLKEntityExtractionModelIdentifier)modelIdentifier;Parameters
modelIdentifierThe model identifier of the model.
Return Value
A
EntityExtractorRemoteModelinstance. -
Unavailable.
Declaration
Objective-C
- (nonnull instancetype)init;