readmeconfig
Browse files- ChessBot-Dataset.py +1 -1
ChessBot-Dataset.py
CHANGED
@@ -46,7 +46,7 @@ class ChessPGNDataset(GeneratorBasedBuilder):
|
|
46 |
def _split_generators(self, dl_manager: DownloadManager):
|
47 |
from pathlib import Path, os
|
48 |
|
49 |
-
if self.config.data_dir
|
50 |
repo_root = Path(self.config.data_dir)
|
51 |
train_files = [repo_root / 'train' / f for f in os.listdir(repo_root / 'train')]
|
52 |
test_files = [repo_root / 'test' / f for f in os.listdir(repo_root / 'test')]
|
|
|
46 |
def _split_generators(self, dl_manager: DownloadManager):
|
47 |
from pathlib import Path, os
|
48 |
|
49 |
+
if self.config.data_dir:
|
50 |
repo_root = Path(self.config.data_dir)
|
51 |
train_files = [repo_root / 'train' / f for f in os.listdir(repo_root / 'train')]
|
52 |
test_files = [repo_root / 'test' / f for f in os.listdir(repo_root / 'test')]
|