qanastek commited on
Commit
983bf43
·
1 Parent(s): 23d36a7

Update QUAERO.py

Browse files
Files changed (1) hide show
  1. QUAERO.py +2 -1
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=='.' and not str(i['tokens'][index-1]).isnumeric()]
 
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