changed data type
Browse files- quoteli3.py +1 -1
quoteli3.py
CHANGED
@@ -135,7 +135,7 @@ class QuoteLi3(datasets.GeneratorBasedBuilder):
|
|
135 |
context = self.get_context(quote, path)
|
136 |
answer_mention_start = context.find(search_text)
|
137 |
answer_mention_end = answer_mention_start + len(mention)
|
138 |
-
if mention != 'NO_MENTION':
|
139 |
answer_mention = {
|
140 |
'answer': mention,
|
141 |
'answer_start': answer_mention_start,
|
|
|
135 |
context = self.get_context(quote, path)
|
136 |
answer_mention_start = context.find(search_text)
|
137 |
answer_mention_end = answer_mention_start + len(mention)
|
138 |
+
if mention != 'NO_MENTION' and answer_mention_start >= 0:
|
139 |
answer_mention = {
|
140 |
'answer': mention,
|
141 |
'answer_start': answer_mention_start,
|