Giguru Scheuer commited on
Commit
20b4156
1 Parent(s): 6fce28e

Increased sample size

Browse files
Files changed (1) hide show
  1. trec-cast-2019-multi-turn.py +3 -2
trec-cast-2019-multi-turn.py CHANGED
@@ -55,6 +55,7 @@ _URLs = {
55
  },
56
  }
57
 
 
58
 
59
  class TrecCast2019MultiTurn(datasets.GeneratorBasedBuilder):
60
  VERSION = datasets.Version("1.0.0")
@@ -195,7 +196,7 @@ class TrecCast2019MultiTurn(datasets.GeneratorBasedBuilder):
195
  docid = f"CAR_{para.para_id}"
196
  yield docid, ({"docno": docid, "text": para.get_text()})
197
  i += 1
198
- if is_sample and i >= 10000:
199
  break
200
 
201
  i = 0
@@ -206,7 +207,7 @@ class TrecCast2019MultiTurn(datasets.GeneratorBasedBuilder):
206
  docid = f"MARCO_{docid}"
207
  yield docid, ({"docno": docid, "text": text})
208
  i += 1
209
- if is_sample and i >= 10000:
210
  break
211
  else:
212
  raise NotImplementedError(f"'{split}' is not yet implemented")
 
55
  },
56
  }
57
 
58
+ SAMPLE_SIZE = 100000
59
 
60
  class TrecCast2019MultiTurn(datasets.GeneratorBasedBuilder):
61
  VERSION = datasets.Version("1.0.0")
 
196
  docid = f"CAR_{para.para_id}"
197
  yield docid, ({"docno": docid, "text": para.get_text()})
198
  i += 1
199
+ if is_sample and i >= SAMPLE_SIZE:
200
  break
201
 
202
  i = 0
 
207
  docid = f"MARCO_{docid}"
208
  yield docid, ({"docno": docid, "text": text})
209
  i += 1
210
+ if is_sample and i >= SAMPLE_SIZE:
211
  break
212
  else:
213
  raise NotImplementedError(f"'{split}' is not yet implemented")