Spaces:
Runtime error
Runtime error
Commit
·
7d0c38a
1
Parent(s):
22156ab
Update app.py
Browse files
app.py
CHANGED
@@ -115,13 +115,11 @@ class SubjectiveTest:
|
|
115 |
entity_text = ent.text
|
116 |
question_patterns = self.adjust_question_pattern(entity_label,"")
|
117 |
for pattern in question_patterns:
|
118 |
-
|
119 |
-
if
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
else:
|
124 |
-
question_answer_dict[entity_label] = [question]
|
125 |
|
126 |
questions = []
|
127 |
|
|
|
115 |
entity_text = ent.text
|
116 |
question_patterns = self.adjust_question_pattern(entity_label,"")
|
117 |
for pattern in question_patterns:
|
118 |
+
question = pattern.format(entity=entity_text, topic=topic)
|
119 |
+
if entity_label in question_answer_dict:
|
120 |
+
question_answer_dict[entity_label].append(question)
|
121 |
+
else:
|
122 |
+
question_answer_dict[entity_label] = [question]
|
|
|
|
|
123 |
|
124 |
questions = []
|
125 |
|