Class FineGrainedReportListener.ConfusionMatrixLine
java.lang.Object
opennlp.tools.cmdline.FineGrainedReportListener.ConfusionMatrixLine
- Enclosing class:
FineGrainedReportListener
Represents a line in the confusion table.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates a newFineGrainedReportListener.ConfusionMatrixLine -
Method Summary
Modifier and TypeMethodDescriptiondoubleintprivate voidIncrements the counter for the given column and updates the statistics.
-
Field Details
-
line
-
ref
-
total
private int total -
correct
private int correct -
acc
private double acc
-
-
Constructor Details
-
ConfusionMatrixLine
Creates a newFineGrainedReportListener.ConfusionMatrixLine- Parameters:
ref- the reference column
-
-
Method Details
-
increment
Increments the counter for the given column and updates the statistics.- Parameters:
column- the column to be incremented
-
getAccuracy
public double getAccuracy()- Returns:
- Retrieves the calculated accuracy of this element
-
getValue
- Parameters:
column- The column to retrieve the counter value for.- Returns:
- Retrieves the counter value for the given
column.
-