polinaeterna HF staff commited on
Commit
614efcd
1 Parent(s): 8ba1508

remove *args from custom config

Browse files
Files changed (1) hide show
  1. ml_spoken_words.py +1 -2
ml_spoken_words.py CHANGED
@@ -120,14 +120,13 @@ _LANGUAGES = [
120
  class MlSpokenWordsConfig(datasets.BuilderConfig):
121
  """BuilderConfig for MlSpokenWords."""
122
 
123
- def __init__(self, *args, languages, format="wav", **kwargs):
124
  """BuilderConfig for MlSpokenWords.
125
  Args:
126
  languages (:obj:`Union[List[str], str]`): language or list of languages to load
127
  **kwargs: keyword arguments forwarded to super.
128
  """
129
  super().__init__(
130
- *args,
131
  name="+".join(languages) + "_" + format if isinstance(languages, list) else languages + "_" + format,
132
  **kwargs,
133
  )
 
120
  class MlSpokenWordsConfig(datasets.BuilderConfig):
121
  """BuilderConfig for MlSpokenWords."""
122
 
123
+ def __init__(self, languages, format="wav", **kwargs):
124
  """BuilderConfig for MlSpokenWords.
125
  Args:
126
  languages (:obj:`Union[List[str], str]`): language or list of languages to load
127
  **kwargs: keyword arguments forwarded to super.
128
  """
129
  super().__init__(
 
130
  name="+".join(languages) + "_" + format if isinstance(languages, list) else languages + "_" + format,
131
  **kwargs,
132
  )