Instance Method

gazetteers(for:)

Retrieves the gazetteers attached to a tag scheme.

Declaration

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

Parameters

tagScheme

The tag scheme for the gazetteers.

Return Value

An array of NLGazetteer.

See Also

Using Gazetteers with a Tagger

func setGazetteers([NLGazetteer], for: NLTagScheme)

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

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