missing
Browse files- ChessBot-Dataset.py +3 -2
ChessBot-Dataset.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import logging
|
|
|
2 |
from datasets import (
|
3 |
GeneratorBasedBuilder,
|
4 |
DatasetInfo,
|
@@ -20,10 +21,10 @@ class ChessPGNDataset(GeneratorBasedBuilder):
|
|
20 |
name="default",
|
21 |
version=Version("0.0.2"),
|
22 |
description="Chess positions + moves + results, streamed from PGN shards",
|
23 |
-
data_files={
|
24 |
"train": "**/train/*.pgn",
|
25 |
"test": "**/test/*.pgn",
|
26 |
-
},
|
27 |
),
|
28 |
]
|
29 |
DEFAULT_CONFIG_NAME = "default"
|
|
|
1 |
import logging
|
2 |
+
from datasets.data_files import DataFilesPatternsDict
|
3 |
from datasets import (
|
4 |
GeneratorBasedBuilder,
|
5 |
DatasetInfo,
|
|
|
21 |
name="default",
|
22 |
version=Version("0.0.2"),
|
23 |
description="Chess positions + moves + results, streamed from PGN shards",
|
24 |
+
data_files=DataFilesPatternsDict({
|
25 |
"train": "**/train/*.pgn",
|
26 |
"test": "**/test/*.pgn",
|
27 |
+
}),
|
28 |
),
|
29 |
]
|
30 |
DEFAULT_CONFIG_NAME = "default"
|