Update Naija-Stopwords.py
Browse files- Naija-Stopwords.py +14 -16
Naija-Stopwords.py
CHANGED
@@ -97,23 +97,21 @@ class NaijaStopwords(datasets.GeneratorBasedBuilder):
|
|
97 |
|
98 |
BUILDER_CONFIGS = []
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
description=textwrap.dedent(
|
105 |
-
f"""{_DESCRIPTION}"""
|
106 |
-
),
|
107 |
-
text_features={"word": "word"},
|
108 |
-
hau_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/stopwords/hau_stopwords.csv",
|
109 |
-
ibo_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/stopwords/ibo_stopwords.csv",
|
110 |
-
pcm_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/stopwords/pcm_stopwords.csv",
|
111 |
-
yor_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/stopwords/yor_stopwords.csv",
|
112 |
-
citation=textwrap.dedent(
|
113 |
-
f"""{_CITATION}"""
|
114 |
-
),
|
115 |
),
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
def _info(self):
|
119 |
features = {text_feature: datasets.Value("string") for text_feature in self.config.text_features}
|
|
|
97 |
|
98 |
BUILDER_CONFIGS = []
|
99 |
|
100 |
+
BUILDER_CONFIGS.append(
|
101 |
+
NaijaStopwordsConfig(
|
102 |
+
description=textwrap.dedent(
|
103 |
+
f"""{_DESCRIPTION}"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
),
|
105 |
+
text_features={"word": "word"},
|
106 |
+
hau_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/stopwords/hau_stopwords.csv",
|
107 |
+
ibo_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/stopwords/ibo_stopwords.csv",
|
108 |
+
pcm_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/stopwords/pcm_stopwords.csv",
|
109 |
+
yor_url=f"https://raw.githubusercontent.com/hausanlp/NaijaSenti/main/data/stopwords/yor_stopwords.csv",
|
110 |
+
citation=textwrap.dedent(
|
111 |
+
f"""{_CITATION}"""
|
112 |
+
),
|
113 |
+
),
|
114 |
+
)
|
115 |
|
116 |
def _info(self):
|
117 |
features = {text_feature: datasets.Value("string") for text_feature in self.config.text_features}
|