Datasets:
Update sentiment-dksf.py
Browse files- sentiment-dksf.py +1 -1
sentiment-dksf.py
CHANGED
@@ -45,5 +45,5 @@ class SentimentDKSF(datasets.GeneratorBasedBuilder):
|
|
45 |
)
|
46 |
for id_, row in enumerate(csv_reader):
|
47 |
text, label = row
|
48 |
-
label = label2id
|
49 |
yield id_, {"text": text, "label": label}
|
|
|
45 |
)
|
46 |
for id_, row in enumerate(csv_reader):
|
47 |
text, label = row
|
48 |
+
label = label2id(label)
|
49 |
yield id_, {"text": text, "label": label}
|