ramsrigouthamg / Questgen.ai

Question generation using state-of-the-art Natural Language Processing algorithms
https://questgen.ai/
MIT License
904 stars 288 forks source link

TypeError: load() got an unexpected keyword argument 'quiet' #72

Open dev-hjJoo opened 10 months ago

dev-hjJoo commented 10 months ago

TypeError Traceback (most recent call last) Cell In[16], line 1 ----> 1 qg = main.QGen() 2 output = qg.predict_mcq(payload) 3 pprint (output)

File ~\anaconda3\envs\PyTorch\lib\site-packages\Questgen\main.py:46, in QGen.init(self) 44 self.device = device 45 self.model = model ---> 46 self.nlp = spacy.load('en_core_web_sm', quiet=True) 48 self.s2v = Sense2Vec().from_disk('s2v_old') 50 self.fdist = FreqDist(brown.words())

TypeError: load() got an unexpected keyword argument 'quiet'

I installed it following the requirements.txt provided in this repo, and also followed the guidelines written in the README.md file. However, the above error occurred. Please let me know how to resolve this error.

rane-hub commented 9 months ago

Remove the parameter called "quiet" and it works fine.

VAIBHAVSING commented 5 months ago

not working

danielwcho commented 3 months ago

not working

It worked for me on vscode.