Class IOBEvaluation


  • public class IOBEvaluation
    extends Object
    • Constructor Detail

      • IOBEvaluation

        public IOBEvaluation()
    • Method Detail

      • getType

        public String getType()
      • evaluate

        public static double[] evaluate​(ArrayList<?> gold_tok,
                                        ArrayList<?> eval_tok)
                                 throws 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:
        Exception