question_generator icon indicating copy to clipboard operation
question_generator copied to clipboard

can you get your example to run? question_generation_example.ipynb

Open ninjamoba opened this issue 3 years ago • 1 comments

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`

ninjamoba avatar Feb 12 '22 19:02 ninjamoba

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.

AMontgomerie avatar Feb 24 '22 10:02 AMontgomerie