MLKitEntityExtraction Framework Reference

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 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 .

    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;