Datasets:
anjalyjayakrishnan
commited on
Commit
•
2a50485
1
Parent(s):
9c696e0
error fix
Browse files
test.py
CHANGED
@@ -42,22 +42,22 @@ _HOMEPAGE = "https://gitlabdev.bridgeconn.com/software/research/datasets/snow-mo
|
|
42 |
|
43 |
_LICENSE = ""
|
44 |
|
45 |
-
_URL = "https://gitlabdev.bridgeconn.com/software/research/datasets/snow-mountain
|
46 |
|
47 |
_FILES = {
|
48 |
"hindi": {
|
49 |
-
"train_500":
|
50 |
-
"val_500":
|
51 |
-
"train_1000":
|
52 |
-
"val_1000":
|
53 |
-
"test_common":
|
54 |
},
|
55 |
"haryanvi": {
|
56 |
-
"train_500":
|
57 |
-
"val_500":
|
58 |
-
"train_1000":
|
59 |
-
"val_1000":
|
60 |
-
"test_common":
|
61 |
}
|
62 |
}
|
63 |
|
@@ -92,14 +92,14 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
92 |
|
93 |
def _split_generators(self, dl_manager):
|
94 |
|
95 |
-
urls_to_download = {
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
downloaded_files = dl_manager.
|
103 |
|
104 |
train_splits = [
|
105 |
datasets.SplitGenerator(
|
|
|
42 |
|
43 |
_LICENSE = ""
|
44 |
|
45 |
+
_URL = "https://gitlabdev.bridgeconn.com/software/research/datasets/snow-mountain/"
|
46 |
|
47 |
_FILES = {
|
48 |
"hindi": {
|
49 |
+
"train_500": "data/experiments/hindi/train_500.csv",
|
50 |
+
"val_500": "data/experiments/hindi/val_500.csv",
|
51 |
+
"train_1000": "data/experiments/hindi/train_1000.csv",
|
52 |
+
"val_1000": "data/experiments/hindi/val_1000.csv",
|
53 |
+
"test_common": "data/experiments/hindi/test_common.csv",
|
54 |
},
|
55 |
"haryanvi": {
|
56 |
+
"train_500": "data/experiments/haryanvi/train_500.csv",
|
57 |
+
"val_500": "data/experiments/haryanvi/val_500.csv",
|
58 |
+
"train_1000": "data/experiments/haryanvi/train_1000.csv",
|
59 |
+
"val_1000": "data/experiments/haryanvi/val_1000.csv",
|
60 |
+
"test_common": "data/experiments/haryanvi/test_common.csv",
|
61 |
}
|
62 |
}
|
63 |
|
|
|
92 |
|
93 |
def _split_generators(self, dl_manager):
|
94 |
|
95 |
+
# urls_to_download = {
|
96 |
+
# "train_500": os.path.join(_URL, _FILES[self.config.name]["train_500"]),
|
97 |
+
# "val_500": os.path.join(_URL, _FILES[self.config.name]["val_500"]),
|
98 |
+
# "train_1000": os.path.join(_URL, _FILES[self.config.name]["train_1000"]),
|
99 |
+
# "val_1000": os.path.join(_URL, _FILES[self.config.name]["val_1000"]),
|
100 |
+
# "test_common": os.path.join(_URL, _FILES[self.config.name]["test_common"]),
|
101 |
+
# }
|
102 |
+
downloaded_files = dl_manager.download(_FILES[self.config.name])
|
103 |
|
104 |
train_splits = [
|
105 |
datasets.SplitGenerator(
|