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.

class NLGazetteer

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