Enum Class TextAnnotationProperties

java.lang.Object
java.lang.Enum<TextAnnotationProperties>
tagger.TextAnnotationProperties
All Implemented Interfaces:
Serializable, Comparable<TextAnnotationProperties>, Constable

public enum TextAnnotationProperties extends Enum<TextAnnotationProperties>
Singleton that determines which properties words should be tagged with. The properties are then passed through a pipeline through which TextAnnotater parses source text to madlibify. The only properties requested are the words themselves (tokens) and their parts of speech.
See Also:
  • Enum Constant Details

  • Field Details

    • props

      private static final Properties props
      Properties for CoreNLP are set to pair each word parsed (separated by white space) only with its part of speech
    • pipeline

      private static final edu.stanford.nlp.pipeline.StanfordCoreNLP pipeline
      Pipeline object is responsible for feeding the text file through the annotator
  • Constructor Details

    • TextAnnotationProperties

      private TextAnnotationProperties()
  • Method Details

    • values

      public static TextAnnotationProperties[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TextAnnotationProperties valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPipeline

      public edu.stanford.nlp.pipeline.StanfordCoreNLP getPipeline()
    • getInstance

      public static TextAnnotationProperties getInstance()