FusionNet-NLI icon indicating copy to clipboard operation
FusionNet-NLI copied to clipboard

got error when run prepro.py

Open WHJTC opened this issue 5 years ago • 1 comments

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!

WHJTC avatar Oct 03 '18 07:10 WHJTC

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!

hsinyuan-huang avatar Dec 10 '18 20:12 hsinyuan-huang