List of usage examples for edu.stanford.nlp.sequences DocumentReaderAndWriter printAnswers
void printAnswers(List<IN> doc, PrintWriter out);
From source file:lv.lumii.ner.NerPipe.java
License:Open Source License
public String getAnswerString(List<CoreLabel> doc, DocumentReaderAndWriter<CoreLabel> rw) { StringWriter bos = new StringWriter(); PrintWriter printer = new PrintWriter(bos); rw.printAnswers(doc, printer); return bos.toString(); }