AI-generated Key Takeaways
-
MLKEntityExtractorOptions
provides configuration options for theMLKEntityExtractor
used for parsing entities in text. -
It primarily focuses on specifying the model used for entity extraction through the
modelIdentifier
property. -
The
initWithModelIdentifier:
method allows creating an instance with a specific model identifier for parsing addresses and phone numbers. -
Default initialization using
init
is unavailable; you must useinitWithModelIdentifier:
for creating instances.
MLKEntityExtractorOptions
@interface MLKEntityExtractorOptions : NSObject
Options 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
modelIdentifier
The model to use when parsing addresses and phone numbers in text.
Return Value
A new instance of
MLKEntityExtractorOptions
configured with the given model identifier.