readmeconfig
Browse files- ChessBot-Dataset.py +1 -4
ChessBot-Dataset.py
CHANGED
@@ -27,10 +27,7 @@ class ChessPGNDataset(GeneratorBasedBuilder):
|
|
27 |
def _split_generators(self, dl_manager: DownloadManager):
|
28 |
from pathlib import Path, os
|
29 |
|
30 |
-
|
31 |
-
logger.info(f"Found config: {self.config}")
|
32 |
-
|
33 |
-
if self.config.data_dir:
|
34 |
repo_root = Path(self.config.data_dir)
|
35 |
train_files = [repo_root / 'train' / f for f in os.listdir(repo_root / 'train')]
|
36 |
test_files = [repo_root / 'test' / f for f in os.listdir(repo_root / 'test')]
|
|
|
27 |
def _split_generators(self, dl_manager: DownloadManager):
|
28 |
from pathlib import Path, os
|
29 |
|
30 |
+
if self.config.data_dir or self.config.data_files is None:
|
|
|
|
|
|
|
31 |
repo_root = Path(self.config.data_dir)
|
32 |
train_files = [repo_root / 'train' / f for f in os.listdir(repo_root / 'train')]
|
33 |
test_files = [repo_root / 'test' / f for f in os.listdir(repo_root / 'test')]
|