Datasets:
Label UPPERCASE
Browse files- Naija-Lexicons.py +1 -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=["
|
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 |
-
"
|
17 |
-
"
|
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,
|