Update suomi24_toxicity_pred.py
Browse files- suomi24_toxicity_pred.py +2 -2
suomi24_toxicity_pred.py
CHANGED
@@ -87,11 +87,11 @@ class Suomi24ToxicityPred(datasets.GeneratorBasedBuilder):
|
|
87 |
# here make the data into a proper thing
|
88 |
for one in data:
|
89 |
example = {}
|
90 |
-
|
91 |
count = count + 1
|
92 |
example["text"] = one[2]
|
93 |
example["label"] = one[1]
|
94 |
|
95 |
-
yield (
|
96 |
|
97 |
|
|
|
87 |
# here make the data into a proper thing
|
88 |
for one in data:
|
89 |
example = {}
|
90 |
+
text_id = output_list[count] # change this somehow
|
91 |
count = count + 1
|
92 |
example["text"] = one[2]
|
93 |
example["label"] = one[1]
|
94 |
|
95 |
+
yield (text_id, example)
|
96 |
|
97 |
|