Datasets:
Update emotion_chinese_english.py
Browse files
emotion_chinese_english.py
CHANGED
@@ -69,4 +69,4 @@ class emotionchineseenglish(datasets.GeneratorBasedBuilder):
|
|
69 |
fields = line.strip().split("\t")
|
70 |
idx, sentence, label = fields
|
71 |
label = _LABEL_MAPPING[int(label)]
|
72 |
-
yield int(idx), {"id": int(idx), "sentence":
|
|
|
69 |
fields = line.strip().split("\t")
|
70 |
idx, sentence, label = fields
|
71 |
label = _LABEL_MAPPING[int(label)]
|
72 |
+
yield int(idx), {"id": int(idx), "sentence": sentence, "label": label}
|