colbertv2 commited on
Commit
f3af868
·
1 Parent(s): 9c4dbc5

Update lotte_passages.py

Browse files
Files changed (1) hide show
  1. lotte_passages.py +4 -1
lotte_passages.py CHANGED
@@ -200,7 +200,10 @@ class NewDataset(datasets.GeneratorBasedBuilder):
200
 
201
  ########################################################
202
 
203
- current_query = data[i]
 
 
 
204
 
205
  if "author" in current_query.keys():
206
  author = current_query['author']
 
200
 
201
  ########################################################
202
 
203
+ if len(data) == 268880 or len(data) == 119458:
204
+ current_query = data[i]
205
+ else:
206
+ current_query = data
207
 
208
  if "author" in current_query.keys():
209
  author = current_query['author']