Package apple.naturallanguage.enums
Class NLTaggerOptions
- java.lang.Object
-
- apple.naturallanguage.enums.NLTaggerOptions
-
public final class NLTaggerOptions extends java.lang.ObjectNLTagger is a class used to automatically tag portions of natural language text with information such as parts of speech, named entities, lemmas, language, and script. An instance of this class is assigned a string to tag, and clients can then obtain tags and ranges for tokens in that string appropriate to a given tag scheme and unit. Predefined tag schemes and tags are defined in NLTagScheme.h. Options arguments of type NLTaggerOptions may include the following flags, which allow clients interested only in certain general types of tokens to specify that tokens of other types should be omitted from the returned results.
-
-
Field Summary
Fields Modifier and Type Field Description static longJoinContractionsJoin contractions such as it's, can't, etc.static longJoinNamesJoin tokens of tag scheme NLTagSchemeNameType.static longOmitOtherOmit tokens of type NLTagOther.static longOmitPunctuationOmit tokens of type NLTagPunctuation.static longOmitWhitespaceOmit tokens of type NLTagWhitespace.static longOmitWordsOmit tokens of type NLTagWord.
-
-
-
Field Detail
-
OmitWords
public static final long OmitWords
Omit tokens of type NLTagWord.- See Also:
- Constant Field Values
-
OmitPunctuation
public static final long OmitPunctuation
Omit tokens of type NLTagPunctuation.- See Also:
- Constant Field Values
-
OmitWhitespace
public static final long OmitWhitespace
Omit tokens of type NLTagWhitespace.- See Also:
- Constant Field Values
-
OmitOther
public static final long OmitOther
Omit tokens of type NLTagOther.- See Also:
- Constant Field Values
-
JoinNames
public static final long JoinNames
Join tokens of tag scheme NLTagSchemeNameType.- See Also:
- Constant Field Values
-
JoinContractions
public static final long JoinContractions
Join contractions such as it's, can't, etc.- See Also:
- Constant Field Values
-
-