hsinyuan-huang / FusionNet-NLI

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

KeyError: 'actions' #2

Closed SeekPoint closed 6 years ago

SeekPoint commented 6 years ago

python3 prepro.py 03/07/2018 03:08:36 start data preparing... (using 8 threads) 03/07/2018 03:09:38 glove loaded. 03/07/2018 03:09:44 train jsonline data flattened. 03/07/2018 03:57:14 All tokens for training are obtained. 03/07/2018 03:59:35 features for training is generated. 03/07/2018 03:59:38 vocab 80033/88742 OOV 42624/13374314 (0.3187%) Traceback (most recent call last): File "prepro.py", line 107, in vocab_ent = [''] + nlp.entity.cfg[u'actions']['1'] KeyError: 'actions'

hsinyuan-huang commented 6 years ago

Hi @loveJasmine,

I think it is because you are using the latest spaCy rather than v1.x. You can also use the provided Docker image to prevent version problems altogether.

SeekPoint commented 6 years ago

yes, fixed it