Instance Method

setGazetteers:forTagScheme:

Attaches gazetteers to a tag scheme, typically one gazetteer per language or one language-independent gazetteer.

Declaration

- (void)setGazetteers:(NSArray<NLGazetteer *> *)gazetteers forTagScheme:(NLTagScheme)tagScheme;

Parameters

gazetteers

The gazetteers to attach to a tag scheme.

tagScheme

The tag scheme for the gazetteers.

See Also

Using Gazetteers with a Tagger

- gazetteersForTagScheme:

Retrieves the gazetteers attached to a tag scheme.

NLGazetteer

A collection of terms and their labels, which take precedence over a word tagger.