A collection of terms and their labels, which take precedence over a word tagger.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
- watchOS 6.0+Beta
- Natural Language
NLGazetteer to augment an
NLTagger when you need to tag a specific set of terms (single words or short phrases) with a label. Typically, you add one gazetteer per language, or one language-independent gazetteer, to an
NLTagger with its
set method. The tagger uses its gazetteers to look up each term it processes. If a gazetteer has a label for a term, the tagger uses that label to tag the term, instead of inferring a tag itself.
Typically, you create a gazetteer at development time, such as in a macOS playground, with Create ML’s
MLGazetteer. Alternatively, you can create an
NLGazetteer at runtime by using