Dokumentacja platformy MLKitTranslate
Zajęcia
Te zajęcia są dostępne na całym świecie.
-
Zarządza modelami używanymi przez funkcje MLKit.
Deklaracja
Objective-C
@interface MLKModelManager : NSObject
-
Model przechowywany zdalnie na serwerze i pobierany na urządzenie.
Deklaracja
Objective-C
@interface MLKRemoteModel : NSObject
-
Model tłumaczenia, który jest przechowywany zdalnie na serwerze i pobierany na urządzenie.
-
Klasa, która tłumaczy podany tekst wejściowy.
Deklaracja
Objective-C
@interface MLKTranslator : NSObject
-
Opcje dotyczące posta Translator
.
Deklaracja
Objective-C
@interface MLKTranslatorOptions : NSObject
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-06 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]