ramsrigouthamg / Questgen.ai

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

error in google colab in qg=QGen() #75

Open VAIBHAVSING opened 4 months ago

VAIBHAVSING commented 4 months ago

error in google colab due to TypeError Traceback (most recent call last) in <cell line: 1>() ----> 1 qg=QGen()

/usr/local/lib/python3.10/dist-packages/Questgen/main.py in init(self) 44 self.device = device 45 self.model = model ---> 46 self.nlp = spacy.load('en_core_web_sm', quiet=True) 47 48 self.s2v = Sense2Vec().from_disk('s2v_old')

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

srkanyalcinkaya commented 4 months ago

I tried like this:

# self.nlp = spacy.load('en_core_web_sm', quiet=True)
self.nlp = spacy.load('en_core_web_sm')