Datasets:
License:
Upload mumospee_small.py with huggingface_hub
Browse files- mumospee_small.py +2 -2
mumospee_small.py
CHANGED
@@ -23,7 +23,7 @@ _SPLITS = ["train", "validation", "test"]
|
|
23 |
# BuilderConfig class for your dataset
|
24 |
class MumospeeDatasetConfig(datasets.BuilderConfig):
|
25 |
def __init__(self, language=None, tag=None, **kwargs):
|
26 |
-
super(
|
27 |
self.language = language
|
28 |
self.tag = tag
|
29 |
|
@@ -131,7 +131,7 @@ class MumospeeDataset(datasets.GeneratorBasedBuilder):
|
|
131 |
# Use dl_manager to get the CSV file from the Hugging Face repo
|
132 |
# csv_file = dl_manager.download_and_extract("metadata.csv")
|
133 |
# Read the CSV metadata
|
134 |
-
|
135 |
data = pd.read_csv(filepath)
|
136 |
# Filter by primary split
|
137 |
data_split = data[data["split"] == split]
|
|
|
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 |
|
|
|
131 |
# Use dl_manager to get the CSV file from the Hugging Face repo
|
132 |
# csv_file = dl_manager.download_and_extract("metadata.csv")
|
133 |
# Read the CSV metadata
|
134 |
+
|
135 |
data = pd.read_csv(filepath)
|
136 |
# Filter by primary split
|
137 |
data_split = data[data["split"] == split]
|