Contents

NLTagger

A tagger that analyzes natural language text.

Declaration

class NLTagger

Mentioned in

Overview

NLTagger supports many different languages and scripts. Use it to segment natural language text into paragraph, sentence, or word units and to tag each unit with information like part of speech, lexical class, lemma, script, and language.

When you create a linguistic tagger, you specify what kind of information you’re interested in by passing one or more NLTagScheme values. Set the string property to the natural language text you want to analyze, and the linguistic tagger processes it according to the specified tag schemes. You can then enumerate over the tags in a specified range, using the methods described in Enumerating linguistic tags, to get the information requested for a given scheme and unit.

Topics

Creating a tagger

Getting the tag schemes

Determining the dominant language and orthography

Enumerating linguistic tags

Getting linguistic tags

Determining the range of a unit token

Using models with a tagger

Using gazetteers with a tagger

See Also

Linguistic tags