Java edu.stanford.nlp.pipeline StanfordCoreNLP fields, constructors, methods, implement or subclass

Example usage for Java edu.stanford.nlp.pipeline StanfordCoreNLP fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for edu.stanford.nlp.pipeline StanfordCoreNLP.

The text is from its open source code.

Field

Constructor

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

Method

voidannotate(CoreDocument document)
Annotate the CoreDocument wrapper.
voidannotate(Annotation annotation)
voidclearAnnotatorPool()
Call this if you are no longer using StanfordCoreNLP and want to release the memory associated with the annotators.
AnnotatorgetExistingAnnotator(String name)
PropertiesgetProperties()
Fetches the Properties object used to construct this Annotator.
voidmain(String[] args)
This can be used just for testing or for command-line text processing.
Annotationprocess(String text)
Runs the entire pipeline on the content of the given text passed in.
voidxmlPrint(Annotation annotation, Writer w)
Wrapper around xmlPrint(Annotation, OutputStream).
voidxmlPrint(Annotation annotation, OutputStream os)
Displays the output of all annotators in XML format.