Class LemmatizerEvaluator

    • Constructor Detail

      • LemmatizerEvaluator

        public LemmatizerEvaluator​(Lemmatizer aLemmatizer,
                                   LemmatizerEvaluationMonitor... listeners)
        Initializes the current instance.
        Parameters:
        aLemmatizer - a lemmatizer
        listeners - an array of evaluation listeners
    • Method Detail

      • 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