Package de.julielab.jcore.ae.jnet.utils
Class IOBEvaluation
- java.lang.Object
-
- de.julielab.jcore.ae.jnet.utils.IOBEvaluation
-
public class IOBEvaluation extends 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(ArrayList<?> gold_tok, ArrayList<?> eval_tok)calculates precision, recall and f-measure, the first argument is takens as the goldstandard, the second one is to be evaluated.StringgetType()
-
-
-
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
-
-