Enum Class TextAnnotationProperties
- All Implemented Interfaces:
Serializable,Comparable<TextAnnotationProperties>,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final edu.stanford.nlp.pipeline.StanfordCoreNLPPipeline object is responsible for feeding the text file through the annotatorprivate static final PropertiesProperties for CoreNLP are set to pair each word parsed (separated by white space) only with its part of speech -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextAnnotationPropertiesedu.stanford.nlp.pipeline.StanfordCoreNLPstatic TextAnnotationPropertiesReturns the enum constant of this class with the specified name.static TextAnnotationProperties[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
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 pipelinePipeline object is responsible for feeding the text file through the annotator
-
-
Constructor Details
-
TextAnnotationProperties
private TextAnnotationProperties()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getPipeline
public edu.stanford.nlp.pipeline.StanfordCoreNLP getPipeline() -
getInstance
-