conlleval icon indicating copy to clipboard operation
conlleval copied to clipboard

why the result is different between conlleval.py and connlleval_perl.py?

Open ethanyxfang opened this issue 5 years ago • 3 comments

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; found: 2 phrases; correct: 0.
accuracy:  33.33%; (non-O)
accuracy:  33.33%; precision:   0.00%; recall:   0.00%; FB1:   0.00
              LOC: precision:   0.00%; recall:   0.00%; FB1:   0.00  2

for connlleval_perl.py

processed 3 tokens with 1 phrases; found: 1 phrases; correct: 1.
accuracy:  33.33%; precision: 100.00%; recall: 100.00%; FB1: 100.00
              LOC: precision: 100.00%; recall: 100.00%; FB1: 100.00  1

which one is reliable?

ethanyxfang avatar Apr 19 '19 13:04 ethanyxfang

As far as I can see conlleval.py is the correct one here. Did you manage to find out what is causing the difference?

swartchris8 avatar Aug 22 '19 08:08 swartchris8

I guess I did not implement the evaluation metrics consistently. I will look into this later. Sorry for any inconvenience.

sighsmile avatar Nov 11 '19 09:11 sighsmile

请问这个issue的问题解决了吗?

topDreamer avatar Jun 09 '20 05:06 topDreamer