abumafrim commited on
Commit
30f12fc
1 Parent(s): 49e3483

Update Naija-Stopwords.py

Browse files
Files changed (1) hide show
  1. Naija-Stopwords.py +14 -16
Naija-Stopwords.py CHANGED
@@ -97,23 +97,21 @@ class NaijaStopwords(datasets.GeneratorBasedBuilder):
97
 
98
  BUILDER_CONFIGS = []
99
 
100
- for lang in LANGUAGES:
101
- BUILDER_CONFIGS.append(
102
- NaijaStopwordsConfig(
103
- name=lang,
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}