Example usage for Java edu.stanford.nlp.pipeline StanfordCoreNLP fields, constructors, methods, implement or subclass
The text is from its open source code.
StanfordCoreNLP(Properties props) Construct a basic pipeline. | |
StanfordCoreNLP(String propsFileNamePrefix) Constructs a pipeline with the properties read from this file, which must be found in the classpath. | |
StanfordCoreNLP(Properties props, boolean enforceRequirements) | |
StanfordCoreNLP(String propsFileNamePrefix, boolean enforceRequirements) | |
StanfordCoreNLP() Constructs a pipeline using as properties the properties file found in the classpath |
void | annotate(CoreDocument document) Annotate the CoreDocument wrapper. |
void | annotate(Annotation annotation) |
void | clearAnnotatorPool() Call this if you are no longer using StanfordCoreNLP and want to release the memory associated with the annotators. |
Annotator | getExistingAnnotator(String name) |
Properties | getProperties() Fetches the Properties object used to construct this Annotator. |
void | main(String[] args) This can be used just for testing or for command-line text processing. |
Annotation | process(String text) Runs the entire pipeline on the content of the given text passed in. |
void | xmlPrint(Annotation annotation, Writer w) Wrapper around xmlPrint(Annotation, OutputStream). |
void | xmlPrint(Annotation annotation, OutputStream os) Displays the output of all annotators in XML format. |