Class FineGrainedReportListener.ConfusionMatrixLine

java.lang.Object
opennlp.tools.cmdline.FineGrainedReportListener.ConfusionMatrixLine
Enclosing class:
FineGrainedReportListener

public static class FineGrainedReportListener.ConfusionMatrixLine extends Object
Represents a line in the confusion table.
  • Field Details

  • Constructor Details

  • Method Details

    • increment

      private void increment(String column)
      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

      public int getValue(String column)
      Parameters:
      column - The column to retrieve the counter value for.
      Returns:
      Retrieves the counter value for the given column.