Class NLTaggerOptions


  • public final class NLTaggerOptions
    extends java.lang.Object
    NLTagger 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 long JoinContractions
      Join contractions such as it's, can't, etc.
      static long JoinNames
      Join tokens of tag scheme NLTagSchemeNameType.
      static long OmitOther
      Omit tokens of type NLTagOther.
      static long OmitPunctuation
      Omit tokens of type NLTagPunctuation.
      static long OmitWhitespace
      Omit tokens of type NLTagWhitespace.
      static long OmitWords
      Omit tokens of type NLTagWord.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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