Samip Dahal
commited on
Commit
·
af86dee
1
Parent(s):
a236881
changes
Browse files
check.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
|
3 |
+
dataset = load_dataset("Samip/func","java")
|
4 |
+
print(dataset)
|
5 |
+
|
func.py
CHANGED
@@ -88,7 +88,7 @@ class FundDefDataset(datasets.GeneratorBasedBuilder):
|
|
88 |
"""Returns SplitGenerators."""
|
89 |
my_urls = _URLs[self.config.name]
|
90 |
if isinstance(my_urls, str):
|
91 |
-
my_urls =
|
92 |
data_dir = [os.path.join(lang_dir,lang) for lang,lang_dir in dl_manager.download_and_extract(my_urls).items()]
|
93 |
splitpaths={split:os.path.join(lang_dir,f'{split}'.bin) for lang_dir in data_dir for split in ['train','valid','test']}
|
94 |
|
|
|
88 |
"""Returns SplitGenerators."""
|
89 |
my_urls = _URLs[self.config.name]
|
90 |
if isinstance(my_urls, str):
|
91 |
+
my_urls = {self.config.name:my_urls}
|
92 |
data_dir = [os.path.join(lang_dir,lang) for lang,lang_dir in dl_manager.download_and_extract(my_urls).items()]
|
93 |
splitpaths={split:os.path.join(lang_dir,f'{split}'.bin) for lang_dir in data_dir for split in ['train','valid','test']}
|
94 |
|