KeithG33 commited on
Commit
6ac050e
·
1 Parent(s): 3caf0b4

readmeconfig

Browse files
Files changed (1) hide show
  1. ChessBot-Dataset.py +5 -0
ChessBot-Dataset.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from datasets import (
2
  GeneratorBasedBuilder,
3
  DatasetInfo,
@@ -26,6 +27,9 @@ class ChessPGNDataset(GeneratorBasedBuilder):
26
  def _split_generators(self, dl_manager: DownloadManager):
27
  from pathlib import Path, os
28
 
 
 
 
29
  if self.config.data_dir:
30
  repo_root = Path(self.config.data_dir)
31
  train_files = [repo_root / 'train' / f for f in os.listdir(repo_root / 'train')]
@@ -35,6 +39,7 @@ class ChessPGNDataset(GeneratorBasedBuilder):
35
  train_files = self.config.data_files["train"]
36
  test_files = self.config.data_files["test"]
37
 
 
38
  train_paths = dl_manager.download(train_files)
39
  test_paths = dl_manager.download(test_files)
40
 
 
1
+ import logging
2
  from datasets import (
3
  GeneratorBasedBuilder,
4
  DatasetInfo,
 
27
  def _split_generators(self, dl_manager: DownloadManager):
28
  from pathlib import Path, os
29
 
30
+ logger = logging.getLogger(__name__)
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')]
 
39
  train_files = self.config.data_files["train"]
40
  test_files = self.config.data_files["test"]
41
 
42
+
43
  train_paths = dl_manager.download(train_files)
44
  test_paths = dl_manager.download(test_files)
45