crystina-z commited on
Commit
c0d3702
1 Parent(s): fa51f44

Update neuclir.py

Browse files
Files changed (1) hide show
  1. neuclir.py +2 -1
neuclir.py CHANGED
@@ -96,8 +96,9 @@ class NeuCLIR(datasets.GeneratorBasedBuilder):
96
  lang = self.config.name
97
  with open(filepath, encoding="utf-8") as f:
98
  for i, line in enumerate(f):
99
- data = {}
100
  qid, query = line.strip().split('\t')
 
 
101
  for feature in ['negative_passages', 'positive_passages']:
102
  data[feature] = []
103
 
 
96
  lang = self.config.name
97
  with open(filepath, encoding="utf-8") as f:
98
  for i, line in enumerate(f):
 
99
  qid, query = line.strip().split('\t')
100
+ data = {'query_id': qid, 'query': query}
101
+
102
  for feature in ['negative_passages', 'positive_passages']:
103
  data[feature] = []
104