MLKitEntityExtraction Çerçevesi Referansı
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
-
Metindeki varlıkları ayrıştırırken kullanılacak model.
-
Bildirim
Objective-C
- (nonnull instancetype)init;
-
Belirtilen model tanımlayıcısıyla EntityExtractor seçeneklerinin yeni bir örneğini oluşturur.
Parametreler
modelIdentifier
|
Google Analytics 4'te adresleri ve telefon numaralarını ayrıştırırken kullanılacak model
metin.
|
Döndürülen Değer
Belirtilen model tanımlayıcısıyla yapılandırılmış yeni bir MLKEntityExtractorOptions
örneği.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eMLKEntityExtractorOptions\u003c/code\u003e provides configuration options for the \u003ccode\u003eMLKEntityExtractor\u003c/code\u003e used for parsing entities in text.\u003c/p\u003e\n"],["\u003cp\u003eIt primarily focuses on specifying the model used for entity extraction through the \u003ccode\u003emodelIdentifier\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003einitWithModelIdentifier:\u003c/code\u003e method allows creating an instance with a specific model identifier for parsing addresses and phone numbers.\u003c/p\u003e\n"],["\u003cp\u003eDefault initialization using \u003ccode\u003einit\u003c/code\u003e is unavailable; you must use \u003ccode\u003einitWithModelIdentifier:\u003c/code\u003e for creating instances.\u003c/p\u003e\n"]]],["`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"],null,["# MLKitEntityExtraction Framework Reference\n\nMLKEntityExtractorOptions\n=========================\n\n\n @interface MLKEntityExtractorOptions : NSObject\n\nOptions for[MLKEntityExtractor](../Classes/MLKEntityExtractor.html).\n- `\n ``\n ``\n `\n\n ### [modelIdentifier](#/c:objc(cs)MLKEntityExtractorOptions(py)modelIdentifier)\n\n `\n ` \n The model to use when parsing entities in the text. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) ../Type-Definitions.html#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier _Nonnull modelIdentifier;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKEntityExtractorOptions(im)init)\n\n `\n ` \n Unavailable. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;\n\n- `\n ``\n ``\n `\n\n ### [-initWithModelIdentifier:](#/c:objc(cs)MLKEntityExtractorOptions(im)initWithModelIdentifier:)\n\n `\n ` \n Creates a new instance of EntityExtractor options with the given model identifier. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)initWithModelIdentifier:\n (nonnull ../Type-Definitions.html#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier)modelIdentifier;\n\n #### Parameters\n\n |-------------------------|--------------------------------------------------------------------|\n | ` `*modelIdentifier*` ` | The model to use when parsing addresses and phone numbers in text. |\n\n #### Return Value\n\n A new instance of `MLKEntityExtractorOptions` configured with the given model identifier."]]