conlleval.py
conlleval.py copied to clipboard
Python version of the evaluation script from CoNLL'00-
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...
Views (`.keys()`, `.items()`, etc.) are generators in Python 3, so we need to explicitly cast them as lists to be able to concatenate.
The script takes input as a sequence of strings in CoNLL format: https://github.com/spyysalo/conlleval.py/blob/master/conlleval.py#L57 This is fine for command-line use, but cumbersome for calling from Python. There should be a way...