List of usage examples for edu.stanford.nlp.pipeline Annotation compact
public void compact()
From source file:edu.sabanciuniv.sentilab.utils.text.nlp.stanford.english.StanfordCoreNLPWrapper.java
License:Open Source License
/** * Annotates a text using the current annotators. * @param text the text to annotate./* ww w . j ava 2 s .c o m*/ * @return the annotated document. */ public Annotation annotate(String text) { Annotation document = new Annotation(text); this.getPipeline().annotate(document); document.compact(); return document; }