fix pathlib import
Browse files- ChessBot-Dataset.py +1 -1
ChessBot-Dataset.py
CHANGED
@@ -24,7 +24,7 @@ class ChessPGNDataset(GeneratorBasedBuilder):
|
|
24 |
)
|
25 |
|
26 |
def _split_generators(self, dl_manager: DownloadManager):
|
27 |
-
|
28 |
# 1) discover your shards inside the repo:
|
29 |
data_dir = Path(self.config.data_dir)
|
30 |
train_shards = sorted(data_dir.joinpath("train").glob("*.pgn"))
|
|
|
24 |
)
|
25 |
|
26 |
def _split_generators(self, dl_manager: DownloadManager):
|
27 |
+
from pathlib import Path
|
28 |
# 1) discover your shards inside the repo:
|
29 |
data_dir = Path(self.config.data_dir)
|
30 |
train_shards = sorted(data_dir.joinpath("train").glob("*.pgn"))
|