conlleval.py icon indicating copy to clipboard operation
conlleval.py copied to clipboard

OSError: conlleval: unexpected number of features in line ...

Open Masum06 opened this issue 7 years ago • 1 comments

My output.txt file is the following format: Sao NC B-LOC B-LOC Paulo VMI I-LOC I-LOC ( Fpa O O Brasil NC B-LOC B-LOC ) Fpt O O , Fc O O 23 Z O O may NC O O ( Fpa O O EFECOM NP B-ORG B-ORG ) Fpt O O . Fp O O

Which should be okay according to the conll format. But after running the conll.py I am getting this error: OSError: conlleval: unexpected number of features in line Sao NC B-LOC B-LOC Do you have any idea why? @spyysalo Thanks in advance!

Masum06 avatar Jan 17 '18 03:01 Masum06

I know I am late but I encountered a same error and the solution is to use the option to explicitly tell that the delimiter is a tab -d "\t". I found this solution on the blog below:- https://blog.argcv.com/articles/2104.c

chinmaySwami avatar Oct 02 '18 22:10 chinmaySwami