AI-generated Key Takeaways
-
MLKEntityExtractorOptionsprovides configuration options for theMLKEntityExtractorclass, primarily focusing on model selection for entity parsing. -
The
modelIdentifierproperty specifies the model used for identifying entities within text, such as addresses and phone numbers. -
Although a default initializer is unavailable, you can create an
MLKEntityExtractorOptionsinstance usinginit(modelIdentifier:)by providing the desired model identifier.
EntityExtractorOptions
class EntityExtractorOptions : NSObjectOptions forMLKEntityExtractor.
-
The model to use when parsing entities in the text.
Declaration
Swift
var modelIdentifier: EntityExtractionModelIdentifier { get } -
Unavailable.
-
Creates a new instance of EntityExtractor options with the given model identifier.
Declaration
Swift
init(modelIdentifier: EntityExtractionModelIdentifier)Parameters
modelIdentifierThe model to use when parsing addresses and phone numbers in text.
Return Value
A new instance of
MLKEntityExtractorOptionsconfigured with the given model identifier.