imvladikon
commited on
Commit
•
0b75501
1
Parent(s):
17798ce
Update nemo_corpus.py
Browse files- nemo_corpus.py +5 -4
nemo_corpus.py
CHANGED
@@ -320,10 +320,11 @@ class NemoCorpus(datasets.GeneratorBasedBuilder):
|
|
320 |
|
321 |
def __init__(self, *args, **kwargs):
|
322 |
super().__init__(*args, **kwargs)
|
323 |
-
dirname = tempfile.TemporaryDirectory().name
|
324 |
-
os.makedirs(dirname, exist_ok=True)
|
325 |
-
os.system(f"cd {dirname} && git clone --depth=1 {URL}")
|
326 |
-
self.repo_folder = Path(dirname) / "NEMO-Corpus" / "data" / "spmrl" / "gold"
|
|
|
327 |
|
328 |
def _info(self):
|
329 |
return datasets.DatasetInfo(
|
|
|
320 |
|
321 |
def __init__(self, *args, **kwargs):
|
322 |
super().__init__(*args, **kwargs)
|
323 |
+
# dirname = tempfile.TemporaryDirectory().name
|
324 |
+
# os.makedirs(dirname, exist_ok=True)
|
325 |
+
# os.system(f"cd {dirname} && git clone --depth=1 {URL}")
|
326 |
+
# self.repo_folder = Path(dirname) / "NEMO-Corpus" / "data" / "spmrl" / "gold"
|
327 |
+
self.repo_folder = "data" / "spmrl" / "gold"
|
328 |
|
329 |
def _info(self):
|
330 |
return datasets.DatasetInfo(
|