Class IOBEvaluation


  • public class IOBEvaluation
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IOBEvaluation()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static double[] evaluate​(java.util.ArrayList<?> gold_tok, java.util.ArrayList<?> eval_tok)
      calculates precision, recall and f-measure, the first argument is takens as the goldstandard, the second one is to be evaluated.
      java.lang.String getType()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IOBEvaluation

        public IOBEvaluation()
    • Method Detail

      • getType

        public java.lang.String getType()
      • evaluate

        public static double[] evaluate​(java.util.ArrayList<?> gold_tok,
                                        java.util.ArrayList<?> eval_tok)
                                 throws java.lang.Exception
        calculates precision, recall and f-measure, the first argument is takens as the goldstandard, the second one is to be evaluated. To get the IOB format out of the PipedFormat, use class Conversion (convertIOB)
        Parameters:
        gold_tok - ArrayList, each element is a String containing the token and the (IOB) tag (seperated with a tab)
        eval_tok - same format as gold_tok
        Returns:
        P/R/F
        Throws:
        java.lang.Exception