AMontgomerie / question_generator

An NLP system for generating reading comprehension questions
MIT License
273 stars 72 forks source link

KeyError tok2vec #8

Open ymzayek opened 3 years ago

ymzayek commented 3 years ago

Hi @AMontgomerie

When I try to run the model with answer_style="multiple_choice" I get the following KeyError:

KeyError: "[E002] Can't find factory for 'tok2vec'. This usually happens when spaCy calls nlp.create_pipe with a component name that's not built in - for example, when constructing the pipeline from a model's meta.json. If you're using a custom component, you can write to Language.factories['tok2vec'] or remove it from the model meta and add it via nlp.add_pipe instead."

What can I do to resolve this?

AMontgomerie commented 2 years ago

Sorry for the slow response. I was unable to reproduce this error.