Tài liệu tham khảo về khung MLKitCompile
Lớp
Các lớp sau đây có sẵn trên toàn cầu.
-
Quản lý các mô hình mà các tính năng MLKit sử dụng.
Khai báo
Objective-C
@interface MLKModelManager : NSObject
-
Một mô hình được lưu trữ từ xa trên máy chủ và tải xuống thiết bị.
Khai báo
Objective-C
@interface MLKRemoteModel : NSObject
-
Mô hình dịch được lưu trữ từ xa trên máy chủ và tải xuống trên thiết bị.
-
Một lớp để dịch văn bản nhập đã cho.
Khai báo
Objective-C
@interface MLKTranslator : NSObject
-
Các tuỳ chọn cho Translator
.
Khai báo
Objective-C
@interface MLKTranslatorOptions : NSObject
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-11-06 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-11-06 UTC."],[[["ML Kit provides classes for managing models, including remote models that are downloaded to the device."],["The `MLKTranslator` class handles text translation, utilizing models managed by `MLKModelManager`."],["`MLKTranslateRemoteModel` represents a translation model stored remotely and downloaded when needed."],["`MLKTranslatorOptions` allows customization of the translation process through various settings."],["Developers can use these classes to integrate on-device or cloud-based translation features in their iOS applications."]]],["The core content outlines five globally available classes for MLKit features. `MLKModelManager` manages models. `MLKRemoteModel` represents models stored remotely and downloaded. `MLKTranslateRemoteModel` is a specific remote model for translation. `MLKTranslator` translates text inputs. Lastly, `MLKTranslatorOptions` provides customization settings for the `MLKTranslator` class. All classes are defined in Objective-C.\n"]]