Closed harisont closed 2 years ago
@harisont I think that this just is how Python works. When you call read() on a file pointer, that pointer moves to the end of what you just read. So to conllu this file looks like it's empty. What happens if you add file.seek(0) after you read the file, but before you parse the plus fields?
Also, why do you need to parse the fields separate? Is there some feature that's missing from conllu that you need to build yourself?
Sorry, you're completely right! I got too used to stateless reasoning :laughing:
It seems that if I write:
plus_fields
is equal toNone
, while if runparse_conllu_plus_fields
first and then read the file everything works as expected.