hsinyuan-huang / FusionNet-NLI

An example for applying FusionNet to Natural Language Inference
135 stars 39 forks source link

got error when run prepro.py #11

Open WHJTC opened 6 years ago

WHJTC commented 6 years ago

Dear author,

Traceback (most recent call last): File "prepro.py", line 107, in vocab_ent = [''] + nlp.entity.cfg[u'actions'][1] KeyError: 'actions'

I tried several versions of spacy(1.10.1, 2.0, 1.8, 1.7.5), but still got this error

thanks!

hsinyuan-huang commented 5 years ago

Hi!

Seems like in the version I was using before, there is this key in nlp.entity.cfg for getting all the possible entities. But it was removed in later versions. I have modified the code so it works with the latest spaCy. Let me know if it works. Thanks!