abumafrim commited on
Commit
c1ec9d9
1 Parent(s): a08de14

Label UPPERCASE

Browse files
Files changed (2) hide show
  1. Naija-Lexicons.py +1 -2
  2. dataset_infos.json +2 -2
Naija-Lexicons.py CHANGED
@@ -105,7 +105,7 @@ class NaijaLexicons(datasets.GeneratorBasedBuilder):
105
  f"""{_DESCRIPTION}"""
106
  ),
107
  text_features={"word": "word"},
108
- label_classes=["positive", "negative"],
109
  label_column="label",
110
  manual_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/sentiment-lexicons/manual/{lang}/mixed.csv",
111
  translated_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/sentiment-lexicons/translated/{lang}/mixed.csv",
@@ -142,7 +142,6 @@ class NaijaLexicons(datasets.GeneratorBasedBuilder):
142
  print(df.head())
143
  print('-'*100)
144
 
145
-
146
  for id_, row in df.iterrows():
147
  word = row["word"]
148
  label = row["label"]
 
105
  f"""{_DESCRIPTION}"""
106
  ),
107
  text_features={"word": "word"},
108
+ label_classes=["POSITIVE", "NEGATIVE"],
109
  label_column="label",
110
  manual_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/sentiment-lexicons/manual/{lang}/mixed.csv",
111
  translated_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/sentiment-lexicons/translated/{lang}/mixed.csv",
 
142
  print(df.head())
143
  print('-'*100)
144
 
 
145
  for id_, row in df.iterrows():
146
  word = row["word"]
147
  label = row["label"]
dataset_infos.json CHANGED
@@ -13,8 +13,8 @@
13
  "label": {
14
  "num_classes": 2,
15
  "names": [
16
- "positive",
17
- "negative"
18
  ],
19
  "names_file": null,
20
  "id": null,
 
13
  "label": {
14
  "num_classes": 2,
15
  "names": [
16
+ "POSITIVE",
17
+ "NEGATIVE"
18
  ],
19
  "names_file": null,
20
  "id": null,