Datasets:

Modalities:
Geospatial
Languages:
English
DOI:
Libraries:
License:
cmalbrec commited on
Commit
2ec1597
·
verified ·
1 Parent(s): 1ad66f1
Files changed (1) hide show
  1. ssl4eo_eu_forest.py +6 -3
ssl4eo_eu_forest.py CHANGED
@@ -59,9 +59,10 @@ note = {This work was carried under the EvoLand project, cf. https://www.evo-lan
59
  )
60
 
61
  def _split_generators(self, dl_manager):
62
- #url = "https://huggingface.co/datasets/dm4eo/ssl4eo_eu_forest/resolve/main/meta.jsonl"
 
 
63
  url = f"{dl_manager._base_path}/meta.jsonl"
64
- print(url)
65
  return [
66
  datasets.SplitGenerator(
67
  name=datasets.Split.TRAIN,
@@ -70,7 +71,9 @@ note = {This work was carried under the EvoLand project, cf. https://www.evo-lan
70
  ]
71
 
72
  def _generate_examples(self, url):
73
- print("Streaming from:", url)
 
 
74
  with xopen(url, encoding="utf-8") as f:
75
  for idx, line in enumerate(f):
76
  yield idx, json.loads(line)
 
59
  )
60
 
61
  def _split_generators(self, dl_manager):
62
+ """
63
+ Define dataset splits - single "training" split for now.
64
+ """
65
  url = f"{dl_manager._base_path}/meta.jsonl"
 
66
  return [
67
  datasets.SplitGenerator(
68
  name=datasets.Split.TRAIN,
 
71
  ]
72
 
73
  def _generate_examples(self, url):
74
+ """
75
+ Streaming-compliant serving of metadata for SSL4EO data samples.
76
+ """
77
  with xopen(url, encoding="utf-8") as f:
78
  for idx, line in enumerate(f):
79
  yield idx, json.loads(line)