corefconversion
corefconversion copied to clipboard
Empty output, no error
Hi,
I'm trying to run conll2jsonlines.py
with a supposedly CoNLL12 formatted file (output from the IMS HotCoref DE tool)
Here's an excerpt from my file:
#begin document (./.././output/testinput.txt); part 000
./.././output/testinput.txt 0 1 Heute ADV (TOP(VROOT(S(AVP* heute - - - - - - -
./.././output/testinput.txt 0 2 Morgen ADV *) Morgen pl fem - - - - -
./.././output/testinput.txt 0 3 war VAFIN * sein sg - - - - - -
./.././output/testinput.txt 0 4 kurzzeitig ADJD (AP* kurzzeitig - - - - - - -
./.././output/testinput.txt 0 5 die ART (NP* der sg fem - - - - (0
./.././output/testinput.txt 0 6 Garantstraße NN *)) Garantstraße sg fem - - - (LOCATION*) 0)
./.././output/testinput.txt 0 7 nach APPR (VP(PP* nach - - - - - - -
./.././output/testinput.txt 0 8 einem ART (NP* ein sg neut - - - - -
./.././output/testinput.txt 0 9 Verkehrsunfall NN *)) Verkehrsunfall sg neut - - - - -
./.././output/testinput.txt 0 10 voll ADJD * voll - - - - - - -
./.././output/testinput.txt 0 11 gesperrt VVPP *)) sperren - - - - - - -
./.././output/testinput.txt 0 12 . $. *)) . - - - - - - -
...
#end document./.././output/testinput.txt
I tried to run it with the following optinos:
python3 conll2jsonlines.py \
--token-col 3 \
--speaker-col 9 \
--tab \
INPUT_FILE \
OUTPUT_FILE
But read_files()
just returns an empty dict. Then I am left with an empty file.
Any Idea what I am doing wrong? Any help would be very much appreciated!