ข้อมูลอ้างอิงเฟรมเวิร์ก MLKitEntityExtraction
-
โมเดลที่จะใช้เมื่อแยกวิเคราะห์เอนทิตีในข้อความ
-
คำประกาศ
Objective-C
- (nonnull instancetype)init;
-
สร้างอินสแตนซ์ใหม่ของตัวเลือก EntityExtractor พร้อมตัวระบุโมเดลที่ให้มา
พารามิเตอร์
modelIdentifier
|
โมเดลที่จะใช้เมื่อแยกวิเคราะห์ที่อยู่และหมายเลขโทรศัพท์ใน
ข้อความ
|
ผลลัพธ์
อินสแตนซ์ใหม่ของ MLKEntityExtractorOptions
ที่กำหนดค่าด้วยตัวระบุโมเดลที่ให้มา
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]