Makoto P. Kato commited on
Commit ·
1c6e4c4
1
Parent(s): bd1d0e6
delete training examples without negatives
Browse files
create_miracl_japanese_small.py
CHANGED
|
@@ -12,4 +12,5 @@ if __name__ == '__main__':
|
|
| 12 |
for split in OUTPUT_FILEPATHS:
|
| 13 |
with open(OUTPUT_FILEPATHS[split], 'w', encoding='utf-8') as f:
|
| 14 |
for data in tqdm(dataset[split]):
|
| 15 |
-
|
|
|
|
|
|
| 12 |
for split in OUTPUT_FILEPATHS:
|
| 13 |
with open(OUTPUT_FILEPATHS[split], 'w', encoding='utf-8') as f:
|
| 14 |
for data in tqdm(dataset[split]):
|
| 15 |
+
if not split == 'train' or len(data['negative_passages']) > 0:
|
| 16 |
+
f.write(json.dumps(data) + '\n')
|
topics.miracl-v1.0-ja-train.jsonl.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6124e784fd0ffdffcf1689d5090dc6961a8be889791bc04ec438aafcaf58276
|
| 3 |
+
size 12469053
|