Enumeration

NSLinguisticTaggerOptions

Constants for linguistic tagger enumeration specifying which tokens to omit and whether to join names.

Declaration

typedef enum NSLinguisticTaggerOptions : NSUInteger {
    ...
} NSLinguisticTaggerOptions;

Topics

Constants

NSLinguisticTaggerOmitWords

Omit tokens of type NSLinguisticTagWord (items considered to be words).

NSLinguisticTaggerOmitWhitespace

Omit tokens of type NSLinguisticTagWhitespace (whitespace of all sorts).

NSLinguisticTaggerOmitOther

Omit tokens of type NSLinguisticTagOther (non-linguistic items, such as symbols).

NSLinguisticTaggerJoinNames

Typically, multiple-word names will be returned as multiple tokens, following the standard tokenization practice of the tagger. If this option is set, then multiple-word names will be joined together and returned as a single token.

See Also

Enumerating Linguistic Tags

Identifying Parts of Speech

Classify nouns, verbs, adjectives, and other parts of speech in a string.

Identifying People, Places, and Organizations

Use a linguistic tagger to perform named entity recognition on a string.

- enumerateTagsInRange:unit:scheme:options:usingBlock:

Enumerates over a given range of the string for a particular unit and calls the specified block for each tag.

- enumerateTagsInRange:scheme:options:usingBlock:

Enumerates over a given range of the string and calls the specified block for each tag.

+ enumerateTagsForString:range:unit:scheme:options:orthography:usingBlock:

Enumerates over a given string and calls the specified block for each tag.

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