Spaces:
Runtime error
Runtime error
Commit
·
fca80c7
1
Parent(s):
fe5d466
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ class SubjectiveTest:
|
|
| 109 |
for sentence in doc.sents:
|
| 110 |
for ent in sentence.ents:
|
| 111 |
entity_label = ent.label_
|
| 112 |
-
entity_text = ent
|
| 113 |
question_patterns = self.adjust_question_pattern(entity_label, topic is not None)
|
| 114 |
for pattern in question_patterns:
|
| 115 |
question = pattern.format(entity=entity_text, topic=topic)
|
|
|
|
| 109 |
for sentence in doc.sents:
|
| 110 |
for ent in sentence.ents:
|
| 111 |
entity_label = ent.label_
|
| 112 |
+
entity_text = ent.text
|
| 113 |
question_patterns = self.adjust_question_pattern(entity_label, topic is not None)
|
| 114 |
for pattern in question_patterns:
|
| 115 |
question = pattern.format(entity=entity_text, topic=topic)
|