Datasets:
bug fix vi
Browse files- ssl4eo_eu_forest.py +3 -2
ssl4eo_eu_forest.py
CHANGED
|
@@ -73,13 +73,14 @@ note = {This work was carried under the EvoLand project, cf. https://www.evo-lan
|
|
| 73 |
"""
|
| 74 |
Streaming-compliant serving of metadata for SSL4EO data samples.
|
| 75 |
"""
|
| 76 |
-
for file in filepath:
|
| 77 |
-
with open(file
|
| 78 |
for idx, line in enumerate(f):
|
| 79 |
yield idx, json.loads(line)
|
| 80 |
|
| 81 |
|
| 82 |
|
|
|
|
| 83 |
def features_to_croissant(features):
|
| 84 |
"""
|
| 85 |
Convert a HF dataset feature into a Croissant-compatible description.
|
|
|
|
| 73 |
"""
|
| 74 |
Streaming-compliant serving of metadata for SSL4EO data samples.
|
| 75 |
"""
|
| 76 |
+
for file in filepath:
|
| 77 |
+
with dl_manager.open(file) as f:
|
| 78 |
for idx, line in enumerate(f):
|
| 79 |
yield idx, json.loads(line)
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
+
|
| 84 |
def features_to_croissant(features):
|
| 85 |
"""
|
| 86 |
Convert a HF dataset feature into a Croissant-compatible description.
|