Class POSEvaluator


public class POSEvaluator extends Evaluator<POSSample>
The POSEvaluator measures the performance of the given POSTagger with the provided reference POSSamples.
  • Constructor Details

    • POSEvaluator

      public POSEvaluator(POSTagger tagger, POSTaggerEvaluationMonitor... listeners)
      Initializes the current instance.
      Parameters:
      tagger -
      listeners - an array of evaluation listeners
  • Method Details

    • getWordAccuracy

      public double getWordAccuracy()
      Retrieves the word accuracy. This is defined as: word accuracy = correctly detected tags / total words
      Returns:
      the word accuracy
    • getWordCount

      public long getWordCount()
      Retrieves the total number of words considered in the evaluation.
      Returns:
      the word count
    • toString

      public String toString()
      Represents this objects as human readable String.
      Overrides:
      toString in class Object