AMontgomerie / question_generator

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

can you get your example to run? question_generation_example.ipynb #18

Open ninjamoba opened 2 years ago

ninjamoba commented 2 years ago

examples/question_generation_example.ipynb

this step:

qg = QuestionGenerator()

with open('articles/indian_matchmaking.txt', 'r') as a:
    article = a.read()

gives me this error running in google colab with gpu:

`--------------------------------------------------------------------------- NameError Traceback (most recent call last) in () ----> 1 qg = QuestionGenerator() 2 3 with open('articles/indian_matchmaking.txt', 'r') as a: 4 article = a.read()

NameError: name 'QuestionGenerator' is not defined`

AMontgomerie commented 2 years ago

Hi, I suppose those example notebooks are pretty out of date now. Here's a link a colab notebook that should run: https://colab.research.google.com/drive/1IUY7gPaRw7SOBYe1gDyb4NMti6cHmbQR?usp=sharing

I'll try to update the examples when I have time.