BillBojangeles2000 commited on
Commit
7d0c38a
·
1 Parent(s): 22156ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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
- # Check if the pattern contains "Explain"
119
- if "Explain" not in pattern:
120
- question = pattern.format(entity=entity_text, topic=topic)
121
- if entity_label in question_answer_dict:
122
- question_answer_dict[entity_label].append(question)
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