AI-generated Key Takeaways
-
EntityExtractorRemoteModelis a class representing an entity extraction model stored remotely and downloaded for on-device usage. -
It's initialized using a model identifier and leverages
ModelManagerfor downloads, posting notifications during the process. -
Developers can access the model's identifier through the
modelIdentifierproperty. -
Direct initialization via
init()is unavailable; instead, utilizeentityExtractorRemoteModel(identifier:)with the desired model identifier to get an instance.
EntityExtractorRemoteModel
class EntityExtractorRemoteModel : RemoteModelAn entity extraction model that is stored remotely on the server and downloaded on the device.
-
The model identifier of this model.
Declaration
Swift
var modelIdentifier: EntityExtractionModelIdentifier { get } -
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
Swift
class func entityExtractorRemoteModel(identifier modelIdentifier: EntityExtractionModelIdentifier) -> EntityExtractorRemoteModelParameters
modelIdentifierThe model identifier of the model.
Return Value
A
EntityExtractorRemoteModelinstance. -
Unavailable.