public class ClassificationGoldVsExtractedCSVPrinter extends Object implements StatisticsPrinter<ClassificationDocumentResult>
| Constructor and Description |
|---|
ClassificationGoldVsExtractedCSVPrinter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFileName()
Returns file name to use for statistics printing.
|
protected String[] |
getHeader()
Returns header record for CSV printer.
|
void |
print(Collection<ClassificationDocumentResult> results,
Path output)
This method accept a collection of
DocumentResult over all dataset to perform some calculation actions and print results into
final format. |
protected void |
printLabel(LabelResult labelResult,
String fileName,
org.apache.commons.csv.CSVPrinter printer)
Prints label data.
|
public ClassificationGoldVsExtractedCSVPrinter()
public void print(Collection<ClassificationDocumentResult> results, Path output)
StatisticsPrinterDocumentResult over all dataset to perform some calculation actions and print results into
final format.print in interface StatisticsPrinter<ClassificationDocumentResult>results - of all documents processed by StatisticsCalculatoroutput - path to folder where result statistic files should be storedpublic String getFileName()
protected String[] getHeader()
protected void printLabel(LabelResult labelResult, String fileName, org.apache.commons.csv.CSVPrinter printer) throws IOException
labelResult - label result to printfileName - file name to printprinter - instanceIOExceptionCopyright © 2020. All rights reserved.