MLKitEntityExtraction Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Functions
The following functions are available globally.
-
Returns a set that contains EntityType
codes of all entity types supported
by the entity extraction API.
Declaration
Swift
static func allEntityTypes() -> Set<EntityType>
-
-
Declaration
Swift
func toLanguageTag() -> String
-
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["The Entity Extraction API provides functions to access supported entity types and model identifiers."],["Developers can retrieve a set of all supported entity types using `allEntityTypes()`."],["`allModelIdentifiers()` returns a set of all supported model identifiers for the API."],["Functions are available to convert between model identifiers and BCP 47 language tags."]]],["The Entity Extraction API offers globally available functions. `allEntityTypes()` returns a set of all supported entity types. `allModelIdentifiers()` returns a set of all model identifiers. `toLanguageTag()` provides the BCP 47 language tag for a given model identifier. `fromLanguageTag(_:)` returns the model identifier for a BCP 47 language tag, or `nil` if invalid or unsupported. These functions enable checking supported entities, accessing identifiers, and managing language tags.\n"]]