MLKitEntity 擷取架構參考資料
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
class EntityExtractorOptions : NSObject
「MLKEntityExtractor
」的選項。
-
-
-
以指定的模型 ID 建立新的 EntityExtractor 選項例項。
參數
modelIdentifier
|
剖析以下項目中的地址和電話號碼時,要使用的模型:
文字。
|
傳回值
已設定指定模型 ID 的 MLKEntityExtractorOptions
新例項。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eMLKEntityExtractorOptions\u003c/code\u003e provides configuration options for the \u003ccode\u003eMLKEntityExtractor\u003c/code\u003e class, primarily focusing on model selection for entity parsing.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emodelIdentifier\u003c/code\u003e property specifies the model used for identifying entities within text, such as addresses and phone numbers.\u003c/p\u003e\n"],["\u003cp\u003eAlthough a default initializer is unavailable, you can create an \u003ccode\u003eMLKEntityExtractorOptions\u003c/code\u003e instance using \u003ccode\u003einit(modelIdentifier:)\u003c/code\u003e by providing the desired model identifier.\u003c/p\u003e\n"]]],[],null,["# MLKitEntityExtraction Framework Reference\n\nEntityExtractorOptions\n======================\n\n class EntityExtractorOptions : NSObject\n\nOptions for`MLKEntityExtractor`.\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 Swift \n\n var modelIdentifier: ../Type-Definitions.html#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier { get }\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKEntityExtractorOptions(im)init)\n\n `\n ` \n Unavailable.\n- `\n ``\n ``\n `\n\n ### [init(modelIdentifier:)](#/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 Swift \n\n init(modelIdentifier: ../Type-Definitions.html#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier)\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."]]