KeithG33 commited on
Commit
3002283
·
1 Parent(s): 3875cb1

readmeconfig

Browse files
Files changed (1) hide show
  1. 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 or self.config.data_files is None:
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')]