Odniesienie do platformy MLKitEntityExtraction
@interface MLKEntityExtractorOptions : NSObject
Opcje dotyczące elementu MLKEntityExtractor
.
-
Model używany podczas analizowania elementów w tekście.
-
Deklaracja
Objective-C
- (nonnull instancetype)init;
-
Tworzy nową instancję opcji EntityExtractor o podanym identyfikatorze modelu.
Parametry
modelIdentifier
|
Model używany przy analizie adresów i numerów telefonów w
tekstu.
|
Zwracana wartość
Nowa instancja usługi MLKEntityExtractorOptions
skonfigurowana z podanym identyfikatorem modelu.
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-08-21 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]