Spaces:
Runtime error
Runtime error
sedrickkeh
commited on
Commit
•
d706fec
1
Parent(s):
8eb8b83
update requirements
Browse files
model/model/question_generator.py
CHANGED
@@ -4,7 +4,7 @@ import collections
|
|
4 |
|
5 |
import benepar
|
6 |
### Run this the first time if benepar_en3 is not yet downloaded
|
7 |
-
|
8 |
|
9 |
def find_word(tree, kind, parents=None):
|
10 |
if parents is None:
|
@@ -191,4 +191,4 @@ class QuestionGenerator:
|
|
191 |
tree_to_str(np, make_indeterminate).lower()))
|
192 |
except Exception as e:
|
193 |
print(e)
|
194 |
-
return questions
|
|
|
4 |
|
5 |
import benepar
|
6 |
### Run this the first time if benepar_en3 is not yet downloaded
|
7 |
+
benepar.download('benepar_en3')
|
8 |
|
9 |
def find_word(tree, kind, parents=None):
|
10 |
if parents is None:
|
|
|
191 |
tree_to_str(np, make_indeterminate).lower()))
|
192 |
except Exception as e:
|
193 |
print(e)
|
194 |
+
return questions
|