AI-generated Key Takeaways
-
MLKEntityExtractorOptionsprovides configuration options for theMLKEntityExtractorused for parsing entities in text. -
It primarily focuses on specifying the model used for entity extraction through the
modelIdentifierproperty. -
The
initWithModelIdentifier:method allows creating an instance with a specific model identifier for parsing addresses and phone numbers. -
Default initialization using
initis unavailable; you must useinitWithModelIdentifier:for creating instances.
MLKEntityExtractorOptions
@interface MLKEntityExtractorOptions : NSObjectOptions forMLKEntityExtractor.
-
The model to use when parsing entities in the text.
Declaration
Objective-C
@property (nonatomic, readonly) MLKEntityExtractionModelIdentifier _Nonnull modelIdentifier; -
Unavailable.
Declaration
Objective-C
- (nonnull instancetype)init; -
Creates a new instance of EntityExtractor options with the given model identifier.
Declaration
Objective-C
- (nonnull instancetype)initWithModelIdentifier: (nonnull MLKEntityExtractionModelIdentifier)modelIdentifier;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.