Example usage for edu.stanford.nlp.sequences DocumentReaderAndWriter printAnswers

List of usage examples for edu.stanford.nlp.sequences DocumentReaderAndWriter printAnswers

Introduction

In this page you can find the example usage for edu.stanford.nlp.sequences DocumentReaderAndWriter printAnswers.

Prototype

void printAnswers(List<IN> doc, PrintWriter out);

Source Link

Document

This method prints the output of the classifier to a PrintWriter .

Usage

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();
}