Page Summary
-
The Entity Extraction API provides functions to access supported entity types and model identifiers.
-
MLKEntityExtractionEntityTypeAllEntityTypesreturns all supported entity types. -
MLKEntityExtractionAllModelIdentifiersreturns all supported model identifiers. -
Functions are available to retrieve language tags for model identifiers and vice-versa.
Functions
The following functions are available globally.
-
Returns a set that contains
EntityTypecodes of all entity types supported by the entity extraction API.Declaration
Objective-C
NSSet < MLKEntityExtractionEntityType > * _Nonnull MLKEntityExtractionEntityTypeAllEntityTypes () -
Returns a set that contains
EntityExtractionModelIdentifiervalues of all model identifiers supported by the Entity Extraction API.Declaration
Objective-C
NSSet < MLKEntityExtractionModelIdentifier > * _Nonnull MLKEntityExtractionAllModelIdentifiers () -
Returns the BCP 47 language tag for this
EntityExtractionModelIdentifier.Declaration
Objective-C
NSString * _Nonnull MLKEntityExtractionLanguageTagForModelIdentifier ( MLKEntityExtractionModelIdentifier _Nonnull modelIdentifier ) -
Returns the
EntityExtractionModelIdentifierfor a given BCP 47 language tag , ornilif the language tag is invalid or not supported by the Entity Extraction API.Declaration
Objective-C
MLKEntityExtractionModelIdentifier _Nullable MLKEntityExtractionModelIdentifierForLanguageTag ( NSString * _Nonnull languageTag )


