مرجع إطار عمل MLKit Translate
صفوف
تتوفّر الفئات التالية على مستوى العالم.
-
تدير النماذج التي تستخدمها ميزات MLKit.
بيان الإفصاح
Objective-C
@interface MLKModelManager : NSObject
-
نموذج يتم تخزينه عن بُعد على الخادم وتنزيله على الجهاز
بيان
Objective-C
@interface MLKRemoteModel : NSObject
-
نموذج ترجمة يتم تخزينه عن بُعد على الخادم ويتم تنزيله على الجهاز
-
فئة تترجم نص الإدخال المقدَّم.
بيان
Objective-C
@interface MLKTranslator : NSObject
-
بيان
Objective-C
@interface MLKTranslatorOptions : NSObject
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-06 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-06 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]