abumafrim commited on
Commit
bb3a1b6
1 Parent(s): 33b70ff

Update Naija-Lexicons.py

Browse files
Files changed (1) hide show
  1. Naija-Lexicons.py +2 -2
Naija-Lexicons.py CHANGED
@@ -193,7 +193,7 @@ class NaijaLexicons(datasets.GeneratorBasedBuilder):
193
  human = row["human"]
194
  label = row["label"]
195
 
196
- yield id_, {"word": word, "machine": machine, "human": human, "label": label}
197
 
198
  elif self.config.name == "manual-sentiment":
199
  for id_, row in df.iterrows():
@@ -210,4 +210,4 @@ class NaijaLexicons(datasets.GeneratorBasedBuilder):
210
  label = row["label"]
211
  emotion_intensity_score = row["emotion_intensity_score"]
212
 
213
- yield id_, {"word": word, "machine": machine, "human": human, "label": label, "emotion_intensity_score": emotion_intensity_score}
 
193
  human = row["human"]
194
  label = row["label"]
195
 
196
+ yield id_, {"word": word, "machine translation": machine, "human translation": human, "label": label}
197
 
198
  elif self.config.name == "manual-sentiment":
199
  for id_, row in df.iterrows():
 
210
  label = row["label"]
211
  emotion_intensity_score = row["emotion_intensity_score"]
212
 
213
+ yield id_, {"word": word, "machine translation": machine, "human translation": human, "label": label, "emotion_intensity_score": emotion_intensity_score}