abumafrim commited on
Commit
3ba34cb
1 Parent(s): bb3a1b6

Update Naija-Lexicons.py

Browse files
Files changed (1) hide show
  1. Naija-Lexicons.py +2 -2
Naija-Lexicons.py CHANGED
@@ -108,7 +108,7 @@ class NaijaLexicons(datasets.GeneratorBasedBuilder):
108
  description=textwrap.dedent(
109
  f"""{_DESCRIPTION}"""
110
  ),
111
- text_features={"word": "word", "machine": "machine", "human": "human", "emotion_intensity_score": "emotion_intensity_score"},
112
  label_classes=["surprise", "fear", "anticipation", "anger", "joy", "trust", "disgust", "sadness"],
113
  label_column="label",
114
  hau_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/lexicons/{t}/huggingface/hausa.csv",
@@ -126,7 +126,7 @@ class NaijaLexicons(datasets.GeneratorBasedBuilder):
126
  description=textwrap.dedent(
127
  f"""{_DESCRIPTION}"""
128
  ),
129
- text_features={"word": "word", "machine": "machine", "human": "human"},
130
  label_classes=["positive", "negative"],
131
  label_column="label",
132
  hau_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/lexicons/{t}/huggingface/hausa.csv",
 
108
  description=textwrap.dedent(
109
  f"""{_DESCRIPTION}"""
110
  ),
111
+ text_features={"word": "word", "machine translation": "machine translation", "human translation": "human translation", "emotion_intensity_score": "emotion_intensity_score"},
112
  label_classes=["surprise", "fear", "anticipation", "anger", "joy", "trust", "disgust", "sadness"],
113
  label_column="label",
114
  hau_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/lexicons/{t}/huggingface/hausa.csv",
 
126
  description=textwrap.dedent(
127
  f"""{_DESCRIPTION}"""
128
  ),
129
+ text_features={"word": "word", "machine translation": "machine translation", "human translation": "human translation"},
130
  label_classes=["positive", "negative"],
131
  label_column="label",
132
  hau_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/lexicons/{t}/huggingface/hausa.csv",