Tài liệu tham khảo về khung MLKitEntityExtraction
-
Mô hình cần sử dụng khi phân tích cú pháp thực thể trong văn bản.
-
Khai báo
Objective-C
- (nonnull instancetype)init;
-
Tạo một phiên bản mới của các tuỳ chọn EntityExtractor với giá trị nhận dạng mô hình đã cho.
Tham số
modelIdentifier
|
Mô hình sẽ sử dụng khi phân tích cú pháp địa chỉ và số điện thoại trong
.
|
Giá trị trả về
Một thực thể mới của MLKEntityExtractorOptions
được định cấu hình bằng mã nhận dạng mô hình đã cho.
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: 2024-08-21 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-21 UTC."],[[["`MLKEntityExtractorOptions` provides configuration options for the `MLKEntityExtractor` used for parsing entities in text."],["It primarily focuses on specifying the model used for entity extraction through the `modelIdentifier` property."],["The `initWithModelIdentifier:` method allows creating an instance with a specific model identifier for parsing addresses and phone numbers."],["Default initialization using `init` is unavailable; you must use `initWithModelIdentifier:` for creating instances."]]],["`MLKEntityExtractorOptions` configures entity extraction. Key actions include setting the `modelIdentifier`, which determines the model used for parsing entities in text. The class offers a constructor, `-initWithModelIdentifier:`, to initialize a new instance with a specific model. The `modelIdentifier` property retrieves the chosen model. The default initializer, `-init`, is unavailable. The model is utilized to identify and extract entities like addresses and phone numbers.\n"]]