Package org.aksw.palmetto.evaluate
Class EvaluationSummarization
- java.lang.Object
-
- org.aksw.palmetto.evaluate.EvaluationSummarization
-
public class EvaluationSummarization extends Object
Summarizes the result files created by theCoherenceEvaluationclass and compares the values with the gold standard files.- Author:
- Michael Röder (michael.roeder@uni-paderborn.de)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvaluationSummarization.CoherenceDatastatic classEvaluationSummarization.CoherenceDataIterator
-
Constructor Summary
Constructors Constructor Description EvaluationSummarization()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleancontainsNaN(double[] values)static voidmain(String[] args)double[]readHumanRatings(File goldStdFile)voidrun(File inputFile, File goldStdFile, File outputFile)static <T> booleansubArraysEqual(T[] array1, int start1, int end1, T[] array2, int start2, int end2)
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
run
public void run(File inputFile, File goldStdFile, File outputFile) throws IOException
- Throws:
IOException
-
containsNaN
private boolean containsNaN(double[] values)
-
readHumanRatings
public double[] readHumanRatings(File goldStdFile) throws IOException
- Throws:
IOException
-
subArraysEqual
public static <T> boolean subArraysEqual(T[] array1, int start1, int end1, T[] array2, int start2, int end2)
-
-