MLKEntityExtractionRemoteModel
@interface MLKEntityExtractionRemoteModel : MLKRemoteModel實體擷取模型,儲存於伺服器上遠端儲存,並下載到裝置上。
-
這個模型的模型 ID。
聲明
Objective-C
@property (nonatomic, readonly) MLKEntityExtractionModelIdentifier _Nonnull modelIdentifier; -
取得已設定指定模型 ID 的
EntityExtractorRemoteModel執行個體。 這個模型可透過呼叫download(_:)API 觸發下載作業ModelManager起。EntityExtractorRemoteModel會在內部使用ModelManager。下載時 是EntityExtractorRemoteModel,系統將針對RemoteModel發布通知。 如要確認這類通知是否屬於EntityExtractorRemoteModel,請檢查 使用者資訊字典中的「ModelDownloadUserInfoKeyRemoteModel」欄位含有一個物件 類型:EntityExtractorRemoteModel。聲明
Objective-C
+ (nonnull MLKEntityExtractionRemoteModel *) entityExtractorRemoteModelWithIdentifier: (nonnull MLKEntityExtractionModelIdentifier)modelIdentifier;參數
modelIdentifier模型的模型 ID。
傳回值
EntityExtractorRemoteModel執行個體。 -
無法使用。
聲明
Objective-C
- (nonnull instancetype)init;