Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K<n<100K
License:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
emo.py
CHANGED
@@ -56,7 +56,7 @@ _TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/
|
|
56 |
|
57 |
|
58 |
class Emo(datasets.GeneratorBasedBuilder):
|
59 |
-
"""
|
60 |
|
61 |
VERSION = datasets.Version("1.0.0")
|
62 |
|
@@ -106,7 +106,7 @@ class Emo(datasets.GeneratorBasedBuilder):
|
|
106 |
]
|
107 |
|
108 |
def _generate_examples(self, filepath, split):
|
109 |
-
"""
|
110 |
with open(filepath, "rb") as f:
|
111 |
data = json.load(f)
|
112 |
for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()):
|
|
|
56 |
|
57 |
|
58 |
class Emo(datasets.GeneratorBasedBuilder):
|
59 |
+
"""SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0"""
|
60 |
|
61 |
VERSION = datasets.Version("1.0.0")
|
62 |
|
|
|
106 |
]
|
107 |
|
108 |
def _generate_examples(self, filepath, split):
|
109 |
+
"""Yields examples."""
|
110 |
with open(filepath, "rb") as f:
|
111 |
data = json.load(f)
|
112 |
for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()):
|