fix in _generate_examples loop
Browse files
nba_tracking_data_15_16.py
CHANGED
@@ -174,7 +174,7 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
174 |
def _generate_examples(self, filepaths, split):
|
175 |
# TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
176 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
177 |
-
for link in filepaths:
|
178 |
with open(link, encoding="utf-8") as fp:
|
179 |
|
180 |
game_id = json.load(fp)["gameid"]
|
|
|
174 |
def _generate_examples(self, filepaths, split):
|
175 |
# TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
176 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
177 |
+
for game_title, link in filepaths.items():
|
178 |
with open(link, encoding="utf-8") as fp:
|
179 |
|
180 |
game_id = json.load(fp)["gameid"]
|