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>
-
Returns a set that contains
EntityExtractionModelIdentifier
values of all model identifiers supported by the Entity Extraction API.Declaration
Swift
static func allModelIdentifiers() -> Set<EntityExtractionModelIdentifier>
-
Returns the BCP 47 language tag for this
EntityExtractionModelIdentifier
.Declaration
Swift
func toLanguageTag() -> String
-
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
Swift
static func fromLanguageTag(_ languageTag: String) -> EntityExtractionModelIdentifier?