MLKEntityExtractionRemoteModel
@interface MLKEntityExtractionRemoteModel : MLKRemoteModelMô hình trích xuất thực thể được lưu trữ từ xa trên máy chủ và được tải xuống thiết bị.
-
Mã nhận dạng mô hình của mô hình này.
Khai báo
Objective-C
@property (nonatomic, readonly) MLKEntityExtractionModelIdentifier _Nonnull modelIdentifier; -
Lấy một thực thể của
EntityExtractorRemoteModelđược định cấu hình bằng mã nhận dạng mô hình đã cho. Bạn có thể sử dụng mô hình này để kích hoạt tệp tải xuống bằng cách gọi APIdownload(_:)từModelManager.EntityExtractorRemoteModelsử dụngModelManagertrong nội bộ. Khi tải xuốngEntityExtractorRemoteModel, thì sẽ có một thông báo được đăng vềRemoteModel. Để xác minh xem các thông báo đó có thuộc vềEntityExtractorRemoteModelhay không, hãy kiểm tra TrườngModelDownloadUserInfoKeyRemoteModeltrong từ điển thông tin người dùng chứa một đối tượng thuộc loạiEntityExtractorRemoteModel.Khai báo
Objective-C
+ (nonnull MLKEntityExtractionRemoteModel *) entityExtractorRemoteModelWithIdentifier: (nonnull MLKEntityExtractionModelIdentifier)modelIdentifier;Tham số
modelIdentifierMã nhận dạng mô hình.
Giá trị trả về
Một thực thể
EntityExtractorRemoteModel. -
Không dùng được.
Khai báo
Objective-C
- (nonnull instancetype)init;