Upload many_emotions.py
Browse files- many_emotions.py +1 -1
many_emotions.py
CHANGED
@@ -160,7 +160,7 @@ class EmotionsDataset(datasets.GeneratorBasedBuilder):
|
|
160 |
"license": license,
|
161 |
"label": emo_mapping[ce]}
|
162 |
|
163 |
-
def _generate_examples(self, filepaths, dataset, license):
|
164 |
if dataset == "go_emotions":
|
165 |
for i, filepath in enumerate(filepaths):
|
166 |
df = pd.read_csv(filepath)
|
|
|
160 |
"license": license,
|
161 |
"label": emo_mapping[ce]}
|
162 |
|
163 |
+
def _generate_examples(self, filepaths, dataset, license=None):
|
164 |
if dataset == "go_emotions":
|
165 |
for i, filepath in enumerate(filepaths):
|
166 |
df = pd.read_csv(filepath)
|