conlleval
conlleval copied to clipboard
conlleval in Python (script for chunking/NER evaluation)
Fixes #6.
Getting this error when using arbitrary tags like , , etc. ``` count_chunks(true_seqs, pred_seqs) 129 130 _, true_type = split_tag(true_tag) --> 131 _, pred_type = split_tag(pred_tag) 132 133 if correct_chunk...
my output file is like: ``` a B-LOC B-LOC b I-LOC E-LOC c E-LOC S-LOC ``` and the result is different, for conlleval.py ``` processed 3 tokens with 1 phrases;...
请问一下您,true_tags和pred_tags的输入是否类似[[,,,,,,,,,],[,,,,,,,],[,,,,,,,,,,]],即二维嵌套list类型? #这样会报错 from conlleval import evaluate true_tags =[ ['O', 'B-Part', 'I-Part'],[ 'O', 'O', 'O']] pred_tags = [ ['O', 'B-Part', 'I-Part'],[ 'O', 'O', 'O']] evaluate(true_tags,pred_tags) #这样不报错 from conlleval import evaluate true_tags...
IOB2 is supported as input as you told in the readme, but the evaluation metrics is not in iob2 way. It's in iob1 way. So, you can either provide option...