Instance Method

setGazetteers(_:for:)

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

Declaration

func setGazetteers(_ gazetteers: [NLGazetteer], for tagScheme: NLTagScheme)

Parameters

gazetteers

The gazetteers to attach to a tag scheme.

tagScheme

The tag scheme for the gazetteers.

See Also

Using Gazetteers with a Tagger

func gazetteers(for: NLTagScheme) -> [NLGazetteer]

Retrieves the gazetteers attached to a tag scheme.

Beta
class NLGazetteer

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

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software