jayliqinzhang commited on
Commit
224edaa
·
verified ·
1 Parent(s): c712e3e

Upload mumospee_small.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. mumospee_small.py +5 -1
mumospee_small.py CHANGED
@@ -22,8 +22,9 @@ _SPLITS = ["train", "validation", "test"]
22
 
23
  # BuilderConfig class for your dataset
24
  class MumospeeDatasetConfig(datasets.BuilderConfig):
25
- def __init__(self, language=None, tag=None, **kwargs):
26
  super().__init__(**kwargs)
 
27
  self.language = language
28
  self.tag = tag
29
 
@@ -77,6 +78,9 @@ class MumospeeDataset(datasets.GeneratorBasedBuilder):
77
  name="default",
78
  version=datasets.Version("1.0.0"),
79
  description=_DESCRIPTION,
 
 
 
80
  )
81
  ]
82
  DEFAULT_CONFIG_NAME = "default"
 
22
 
23
  # BuilderConfig class for your dataset
24
  class MumospeeDatasetConfig(datasets.BuilderConfig):
25
+ def __init__(self, split, language=None, tag=None, **kwargs):
26
  super().__init__(**kwargs)
27
+ self.split=split
28
  self.language = language
29
  self.tag = tag
30
 
 
78
  name="default",
79
  version=datasets.Version("1.0.0"),
80
  description=_DESCRIPTION,
81
+ split="train",
82
+ language=None,
83
+ tag=None
84
  )
85
  ]
86
  DEFAULT_CONFIG_NAME = "default"