modify
Browse files
check.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
dataset = load_dataset('test.py', data_files={'train': 'train_.json', 'validation': 'validation_.json'})
|
3 |
+
print(dataset)
|
test.py
CHANGED
@@ -53,7 +53,7 @@ _URLs = {
|
|
53 |
"test": cfg['data']['test']#"test_.json"#"https://drive.google.com/uc?export=download&id=1-2U6BeDluJxIieMA6JTjLoij_KcMhl4Y"
|
54 |
}
|
55 |
|
56 |
-
print(cfg['
|
57 |
|
58 |
|
59 |
|
@@ -84,6 +84,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
84 |
# if self.config.name == "opus_books_es_it": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
85 |
features=datasets.Features({"translation": datasets.features.Translation(languages=("Spanish", "Italian"))})
|
86 |
# features=datasets.Features({cfg["title"]: datasets.features.Translation(languages=(cfg["col1"], cfg{"col2"}))})
|
|
|
87 |
# features = datasets.Features(
|
88 |
# {
|
89 |
# "Spanish": datasets.Value("string"),
|
|
|
53 |
"test": cfg['data']['test']#"test_.json"#"https://drive.google.com/uc?export=download&id=1-2U6BeDluJxIieMA6JTjLoij_KcMhl4Y"
|
54 |
}
|
55 |
|
56 |
+
# print(cfg['translation_fesat'])
|
57 |
|
58 |
|
59 |
|
|
|
84 |
# if self.config.name == "opus_books_es_it": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
85 |
features=datasets.Features({"translation": datasets.features.Translation(languages=("Spanish", "Italian"))})
|
86 |
# features=datasets.Features({cfg["title"]: datasets.features.Translation(languages=(cfg["col1"], cfg{"col2"}))})
|
87 |
+
|
88 |
# features = datasets.Features(
|
89 |
# {
|
90 |
# "Spanish": datasets.Value("string"),
|