Tài liệu tham khảo về khung MLKitEntityExtraction
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Mô 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.
-
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 API download(_:)
từ ModelManager
.
EntityExtractorRemoteModel
sử dụng ModelManager
trong nội bộ. Khi tải xuống
EntityExtractorRemoteModel
, 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ề EntityExtractorRemoteModel
hay không, hãy kiểm tra
Trường ModelDownloadUserInfoKeyRemoteModel
trong từ điển thông tin người dùng chứa một đối tượng
thuộc loại EntityExtractorRemoteModel
.
Giá trị trả về
Một thực thể EntityExtractorRemoteModel
.
-
Khai báo
Objective-C
- (nonnull instancetype)init;
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eMLKEntityExtractionRemoteModel is an entity extraction model stored remotely and downloaded for on-device use.\u003c/p\u003e\n"],["\u003cp\u003eIt's identified by a unique model identifier and managed using \u003ccode\u003eModelManager\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can get an instance of the model and trigger a download using the provided methods.\u003c/p\u003e\n"],["\u003cp\u003eModel download notifications are posted for \u003ccode\u003eRemoteModel\u003c/code\u003e and can be verified using the \u003ccode\u003eModelDownloadUserInfoKeyRemoteModel\u003c/code\u003e field.\u003c/p\u003e\n"]]],[],null,["# MLKitEntityExtraction Framework Reference\n\nMLKEntityExtractionRemoteModel\n==============================\n\n\n @interface MLKEntityExtractionRemoteModel : ../Classes/MLKRemoteModel.html\n\nAn entity extraction model that is stored remotely on the server and downloaded on the device.\n- `\n ``\n ``\n `\n\n ### [modelIdentifier](#/c:objc(cs)MLKEntityExtractionRemoteModel(py)modelIdentifier)\n\n `\n ` \n The model identifier of this model. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) ../Type-Definitions.html#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier _Nonnull modelIdentifier;\n\n- `\n ``\n ``\n `\n\n ### [+entityExtractorRemoteModelWithIdentifier:](#/c:objc(cs)MLKEntityExtractionRemoteModel(cm)entityExtractorRemoteModelWithIdentifier:)\n\n `\n ` \n Gets an instance of `EntityExtractorRemoteModel` configured with the given model identifier.\n This model can be used to trigger a download by calling the `download(_:)` API\n from `ModelManager`.\n\n `EntityExtractorRemoteModel` uses `ModelManager` internally. When downloading\n an `EntityExtractorRemoteModel`, there will be a notification posted for a `RemoteModel`.\n To verify if such notifications belong to an `EntityExtractorRemoteModel`, check that the\n `ModelDownloadUserInfoKeyRemoteModel` field in the user info dictionary contains an object\n of type `EntityExtractorRemoteModel` . \n\n #### Declaration\n\n Objective-C \n\n + (nonnull MLKEntityExtractionRemoteModel *)\n entityExtractorRemoteModelWithIdentifier:\n (nonnull ../Type-Definitions.html#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier)modelIdentifier;\n\n #### Parameters\n\n |-------------------------|------------------------------------|\n | ` `*modelIdentifier*` ` | The model identifier of the model. |\n\n #### Return Value\n\n A `EntityExtractorRemoteModel` instance.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKEntityExtractionRemoteModel(im)init)\n\n `\n ` \n Unavailable. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;"]]