annieske commited on
Commit
7102db0
·
1 Parent(s): 70ef0e0

Update suomi24_toxicity_pred.py

Browse files
Files changed (1) hide show
  1. 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
- id = output_list[count] # change this somehow
91
  count = count + 1
92
  example["text"] = one[2]
93
  example["label"] = one[1]
94
 
95
- yield (id, example)
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