Klasse LemmatizerEvaluator

java.lang.Object
opennlp.tools.util.eval.Evaluator<LemmaSample>
opennlp.tools.lemmatizer.LemmatizerEvaluator

public class LemmatizerEvaluator extends Evaluator<LemmaSample>
The LemmatizerEvaluator measures the performance of the given Lemmatizer with the provided reference samples.
  • Konstruktordetails

  • Methodendetails

    • getWordAccuracy

      public double getWordAccuracy()
      Accuracy is defined as: word accuracy = correctly detected tags / total words
      Gibt zurück:
      Retrieves the word accuracy.
    • getWordCount

      public long getWordCount()
      Gibt zurück:
      Retrieves the total number of words considered in the evaluation.
    • toString

      public String toString()
      Returns this object's human-readable String representation.
      Setzt außer Kraft:
      toString in Klasse Object