ข้อมูลอ้างอิงเฟรมเวิร์กของ MLKit Translate
ชั้นเรียน
คลาสต่อไปนี้พร้อมให้บริการทั่วโลก
-
จัดการโมเดลที่ใช้โดยฟีเจอร์ MLKit
คำประกาศ
Objective-C
@interface MLKModelManager : NSObject
-
โมเดลที่เก็บไว้จากระยะไกลบนเซิร์ฟเวอร์และดาวน์โหลดลงในอุปกรณ์
คำประกาศ
Objective-C
@interface MLKRemoteModel : NSObject
-
โมเดลการแปลที่เก็บไว้จากระยะไกลบนเซิร์ฟเวอร์และดาวน์โหลดลงในอุปกรณ์
-
คลาสที่แปลข้อความอินพุตที่ระบุ
คำประกาศ
Objective-C
@interface MLKTranslator : NSObject
-
ตัวเลือกสำหรับ Translator
คำประกาศ
Objective-C
@interface MLKTranslatorOptions : NSObject
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-06 UTC
[null,null,["อัปเดตล่าสุด 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"]]