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
Objective-C
NSSet<MLKEntityExtractionEntityType> *_Nonnull MLKEntityExtractionEntityTypeAllEntityTypes()
-
Returns a set that contains
EntityExtractionModelIdentifier
values 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
EntityExtractionModelIdentifier
for a given BCP 47 language tag, ornil
if the language tag is invalid or not supported by the Entity Extraction API.Declaration
Objective-C
MLKEntityExtractionModelIdentifier _Nullable MLKEntityExtractionModelIdentifierForLanguageTag( NSString *_Nonnull languageTag)