MLKEntityExtractionRemoteModel
@interface MLKEntityExtractionRemoteModel : MLKRemoteModel
An 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
EntityExtractorRemoteModel
configured with the given model identifier. This model can be used to trigger a download by calling thedownload(_:)
API fromModelManager
.EntityExtractorRemoteModel
usesModelManager
internally. When downloading anEntityExtractorRemoteModel
, there will be a notification posted for aRemoteModel
. To verify if such notifications belong to anEntityExtractorRemoteModel
, check that theModelDownloadUserInfoKeyRemoteModel
field in the user info dictionary contains an object of typeEntityExtractorRemoteModel
.Declaration
Objective-C
+ (nonnull MLKEntityExtractionRemoteModel *) entityExtractorRemoteModelWithIdentifier: (nonnull MLKEntityExtractionModelIdentifier)modelIdentifier;
Parameters
modelIdentifier
The model identifier of the model.
Return Value
A
EntityExtractorRemoteModel
instance. -
Unavailable.
Declaration
Objective-C
- (nonnull instancetype)init;