gabrielStanovsky / unified-factuality

Code, data and models for the paper "Integrating Deep Linguistic Features in Factuality Prediction over Unified Datasets" (Stanovsky, Eckle-Kohler, Puzikov, Dagan and Gurevych ACL 2017)
MIT License
7 stars 0 forks source link

KeyError when converting Factbank #9

Closed ypuzikov closed 7 years ago

ypuzikov commented 7 years ago

I get an error when converting Factbank using the "./scripts/convert_corpora.sh" command:

Converting FactBank..
DEBUG:root:Parsing Factbank
Traceback (most recent call last):
File "./readers.py", line 628, in
os.path.join(inp_, "tokens_tml.txt"))
File "./readers.py", line 135, in init
self.conll_txt = self.convert(tokens_tml)
File "./readers.py", line 206, in convert
if (tmlTag == 'EVENT')
File "./readers.py", line 186, in consolidate_fact_value
else self.to_float(list(opts.values()[0])[0])
File "./readers.py", line 164, in to_float
return self.conversion_dic[fact_val]
KeyError: 'NA'
gabrielStanovsky commented 7 years ago

This is very weird. @judithek, this worked fine for you right?

judithek commented 7 years ago

I do not get this far, the script stops at

python -m spacy download en

(error message: 'spacy' is a package and cannot be directly executed)

ypuzikov commented 7 years ago

Issue resolved.