Class ResultsPrinter
- java.lang.Object
-
- edu.stanford.nlp.ie.machinereading.ResultsPrinter
-
- Direct Known Subclasses:
EntityExtractorResultsPrinter,RelationExtractorResultsPrinter,RothResultsByRelation
public abstract class ResultsPrinter extends Object
Class for comparing the output of information extraction to a gold standard, and printing the results. Subclasses may customize the formatting and content of the printout.- Author:
- mrsmith
-
-
Constructor Summary
Constructors Constructor Description ResultsPrinter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static voidalign(List<CoreMap> list1, List<CoreMap> list2)If the same set of sentences is contained in two lists, order the lists so that their sentences are in the same order (and return true).StringprintResults(CoreMap goldStandard, CoreMap extractorOutput)Given a set of sentences with annotations from an information extractor class, and the same sentences with gold-standard annotations, print results on how the information extraction performed.abstract voidprintResults(PrintWriter pw, List<CoreMap> goldStandard, List<CoreMap> extractorOutput)StringprintResults(List<String> goldStandard, List<String> extractorOutput)abstract voidprintResultsUsingLabels(PrintWriter pw, List<String> goldStandard, List<String> extractorOutput)
-
-
-
Method Detail
-
printResults
public String printResults(CoreMap goldStandard, CoreMap extractorOutput)
Given a set of sentences with annotations from an information extractor class, and the same sentences with gold-standard annotations, print results on how the information extraction performed.
-
printResults
public abstract void printResults(PrintWriter pw, List<CoreMap> goldStandard, List<CoreMap> extractorOutput)
-
printResultsUsingLabels
public abstract void printResultsUsingLabels(PrintWriter pw, List<String> goldStandard, List<String> extractorOutput)
-
-