add dedup file
Browse files- KoPI-NLLB.py +3 -5
KoPI-NLLB.py
CHANGED
@@ -90,9 +90,7 @@ class KoPINLLB(datasets.GeneratorBasedBuilder):
|
|
90 |
for line in f:
|
91 |
if line:
|
92 |
example = json.loads(line)
|
93 |
-
if
|
94 |
-
|
95 |
-
id_
|
96 |
-
else:
|
97 |
-
yield id_, {'text':example['text'],'url':example['url'],'timestamp':example['timestamp'],'meta': "None"}
|
98 |
id_ += 1
|
|
|
90 |
for line in f:
|
91 |
if line:
|
92 |
example = json.loads(line)
|
93 |
+
if line:
|
94 |
+
example = json.loads(line)
|
95 |
+
yield id_, {'text':example['text'],'url':example['url'],'source':example['source'],'score': float(example['score'])}
|
|
|
|
|
96 |
id_ += 1
|