Class POSTaggerCrossValidator


  • public class POSTaggerCrossValidator
    extends java.lang.Object
    • Method Detail

      • evaluate

        public void evaluate​(ObjectStream<POSSample> samples,
                             int nFolds)
                      throws java.io.IOException
        Starts the evaluation.
        Parameters:
        samples - the data to train and test
        nFolds - number of folds
        Throws:
        java.io.IOException
      • getWordAccuracy

        public double getWordAccuracy()
        Retrieves the accuracy for all iterations.
        Returns:
        the word accuracy
      • getWordCount

        public long getWordCount()
        Retrieves the number of words which where validated over all iterations. The result is the amount of folds multiplied by the total number of words.
        Returns:
        the word count