סימוכין למסגרת של MLKitEntityחילוץ
-
המודל שבו צריך להשתמש במהלך ניתוח ישויות בטקסט.
-
הצהרה
Objective-C
- (nonnull instancetype)init;
-
יצירת מופע חדש של אפשרויות EntityCollector עם מזהה המודל הנתון.
פרמטרים
modelIdentifier
|
המודל שבו צריך להשתמש במהלך ניתוח כתובות ומספרי טלפון ב-
טקסט.
|
הערך המוחזר
מופע חדש של MLKEntityExtractorOptions
שהוגדר עם מזהה המודל הנתון.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]