MLKitEntityExtraction-Framework-Referenz
-
Das Modell, das beim Parsen von Entitäten im Text verwendet werden soll.
-
Erklärung
Objective-C
- (nonnull instancetype)init;
-
Erstellt eine neue Instanz der EntityExtractor-Optionen mit der angegebenen Modellkennung.
Parameter
modelIdentifier
|
Das Modell, das beim Parsen von Adressen und Telefonnummern in
Text.
|
Rückgabewert
Eine neue Instanz von MLKEntityExtractorOptions
, die mit der angegebenen Modellkennung konfiguriert wurde.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-21 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]