Instance Method

initWithTagSchemes:options:

Creates a linguistic tagger instance using the specified tag schemes and options.

Declaration

- (instancetype)initWithTagSchemes:(NSArray<NSLinguisticTagScheme> *)tagSchemes options:(NSUInteger)opts;

Parameters

tagSchemes

An array of tag schemes to be used. See NSLinguisticTagScheme for the possible values.

opts

Reserved for future use. Specify 0 for this parameter.

Return Value

An initialized linguistic tagger.

Discussion

Pass any tag schemes to tagSchemes that you intend to use with the methods described in Enumerating Linguistic Tags and Getting Linguistic Tags.

See Also

First Steps

Tokenizing Natural Language Text

Enumerate the words in a string.

string

The string being analyzed by the linguistic tagger.