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.
-
Returns a set that contains EntityExtractionModelIdentifier
values of all model identifiers
supported by the Entity Extraction API.
-
-
Returns the EntityExtractionModelIdentifier
for a given BCP 47 language
tag
, or nil
if the language tag is invalid or not
supported by the Entity Extraction API.
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."],[[["\u003cp\u003eThe Entity Extraction API provides functions to access supported entity types and model identifiers.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKEntityExtractionEntityTypeAllEntityTypes\u003c/code\u003e returns all supported entity types.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKEntityExtractionAllModelIdentifiers\u003c/code\u003e returns all supported model identifiers.\u003c/p\u003e\n"],["\u003cp\u003eFunctions are available to retrieve language tags for model identifiers and vice-versa.\u003c/p\u003e\n"]]],[],null,["# MLKitEntityExtraction Framework Reference\n\nFunctions\n=========\n\nThe following functions are available globally.\n- `\n ``\n ``\n `\n\n ### [MLKEntityExtractionEntityTypeAllEntityTypes](#/c:@F@MLKEntityExtractionEntityTypeAllEntityTypes)\n\n `\n ` \n Returns a set that contains `EntityType` codes of all entity types supported\n by the entity extraction API. \n\n #### Declaration\n\n Objective-C \n\n NSSet\u003c/ml-kit/reference/ios/mlkitentityextraction/api/reference/Type-Definitions#/c:MLKEntity.h@T@MLKEntityExtractionEntityType\u003e\n *_Nonnull MLKEntityExtractionEntityTypeAllEntityTypes()\n\n- `\n ``\n ``\n `\n\n ### [MLKEntityExtractionAllModelIdentifiers](#/c:@F@MLKEntityExtractionAllModelIdentifiers)\n\n `\n ` \n Returns a set that contains `EntityExtractionModelIdentifier` values of all model identifiers\n supported by the Entity Extraction API. \n\n #### Declaration\n\n Objective-C \n\n NSSet\u003c/ml-kit/reference/ios/mlkitentityextraction/api/reference/Type-Definitions#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier\u003e\n *_Nonnull MLKEntityExtractionAllModelIdentifiers()\n\n- `\n ``\n ``\n `\n\n ### [MLKEntityExtractionLanguageTagForModelIdentifier](#/c:@F@MLKEntityExtractionLanguageTagForModelIdentifier)\n\n `\n ` \n Returns the [BCP 47 language tag](https://tools.ietf.org/rfc/bcp/bcp47.txt) for this\n `EntityExtractionModelIdentifier`. \n\n #### Declaration\n\n Objective-C \n\n NSString *_Nonnull MLKEntityExtractionLanguageTagForModelIdentifier(\n /ml-kit/reference/ios/mlkitentityextraction/api/reference/Type-Definitions#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier _Nonnull modelIdentifier)\n\n- `\n ``\n ``\n `\n\n ### [MLKEntityExtractionModelIdentifierForLanguageTag](#/c:@F@MLKEntityExtractionModelIdentifierForLanguageTag)\n\n `\n ` \n Returns the `EntityExtractionModelIdentifier` for a given [BCP 47 language\n tag](https://tools.ietf.org/rfc/bcp/bcp47.txt), or `nil` if the language tag is invalid or not\n supported by the Entity Extraction API. \n\n #### Declaration\n\n Objective-C \n\n /ml-kit/reference/ios/mlkitentityextraction/api/reference/Type-Definitions#/c:MLKEntityExtractionModelIdentifier.h@T@MLKEntityExtractionModelIdentifier _Nullable MLKEntityExtractionModelIdentifierForLanguageTag(\n NSString *_Nonnull languageTag)"]]