lukasbraach
commited on
Commit
•
ebf0fef
1
Parent(s):
0ed895a
upd: it woooorks
Browse files- rwth_phoenix_weather_2014.py +11 -3
rwth_phoenix_weather_2014.py
CHANGED
@@ -1,5 +1,8 @@
|
|
|
|
|
|
1 |
import datasets
|
2 |
import pandas as pd
|
|
|
3 |
|
4 |
_CITATION = """\
|
5 |
@article{koller2015continuous,
|
@@ -156,10 +159,15 @@ class RWTHPhoenixWeather2014(datasets.GeneratorBasedBuilder):
|
|
156 |
]
|
157 |
]
|
158 |
|
159 |
-
def _generate_examples(self, frame_archives:
|
160 |
-
|
161 |
-
|
|
|
|
|
162 |
|
|
|
|
|
|
|
163 |
for key, frames in enumerate(frame_archives):
|
164 |
ex = other_data[frames]
|
165 |
|
|
|
1 |
+
from typing import List, Dict
|
2 |
+
|
3 |
import datasets
|
4 |
import pandas as pd
|
5 |
+
from datasets.download.streaming_download_manager import ArchiveIterable
|
6 |
|
7 |
_CITATION = """\
|
8 |
@article{koller2015continuous,
|
|
|
159 |
]
|
160 |
]
|
161 |
|
162 |
+
def _generate_examples(self, frame_archives: List[ArchiveIterable], other_data: Dict[ArchiveIterable, dict]):
|
163 |
+
"""
|
164 |
+
_generate_examples generates examples for the HuggingFace dataset.
|
165 |
+
It takes a list of frame_archives and the corresponding dict of other data.
|
166 |
+
Each frame_archive acts as a key for the further data.
|
167 |
|
168 |
+
:param frame_archives: list of ArchiveIterables
|
169 |
+
:param other_data: Dict from ArchiveIterables to other data
|
170 |
+
"""
|
171 |
for key, frames in enumerate(frame_archives):
|
172 |
ex = other_data[frames]
|
173 |
|