Update QUAERO.py
Browse files
QUAERO.py
CHANGED
@@ -147,7 +147,8 @@ class QUAERO(datasets.GeneratorBasedBuilder):
|
|
147 |
|
148 |
for i in json_o:
|
149 |
|
150 |
-
ind_punc = [index for index, value in enumerate(i['tokens']) if value=='.'
|
|
|
151 |
|
152 |
for index, value in enumerate(ind_punc):
|
153 |
|
|
|
147 |
|
148 |
for i in json_o:
|
149 |
|
150 |
+
ind_punc = [index for index, value in enumerate(i['tokens']) if value=='.'] + [len(i['tokens'])]
|
151 |
+
# ind_punc = [index for index, value in enumerate(i['tokens']) if value=='.' and not str(i['tokens'][index-1]).isnumeric()]
|
152 |
|
153 |
for index, value in enumerate(ind_punc):
|
154 |
|