Update climate-evaluation.py
Browse files- climate-evaluation.py +3 -3
climate-evaluation.py
CHANGED
@@ -322,7 +322,7 @@ class ClimateEvaluation(datasets.GeneratorBasedBuilder):
|
|
322 |
features["idx"] = datasets.Value("int32")
|
323 |
else:
|
324 |
if self.config.name == "cdp_qa":
|
325 |
-
print(f"self.config.text_features: {self.config.text_features.keys()}")
|
326 |
features = {
|
327 |
text_feature: datasets.Value("string")
|
328 |
for text_feature in self.config.text_features.keys()
|
@@ -482,7 +482,7 @@ class ClimateEvaluation(datasets.GeneratorBasedBuilder):
|
|
482 |
|
483 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
484 |
|
485 |
-
print(f"downloaded_files: {downloaded_files['train']}")
|
486 |
|
487 |
return [
|
488 |
datasets.SplitGenerator(
|
@@ -574,7 +574,7 @@ class ClimateEvaluation(datasets.GeneratorBasedBuilder):
|
|
574 |
yield from self._process_file(data_file)
|
575 |
|
576 |
def _process_file(self, data_file, delimiter=",", idx=None, category=None):
|
577 |
-
print(f"data_file: {data_file}")
|
578 |
with open(data_file, encoding="utf8") as f:
|
579 |
process_label = self.config.process_label
|
580 |
label_classes = self.config.label_classes
|
|
|
322 |
features["idx"] = datasets.Value("int32")
|
323 |
else:
|
324 |
if self.config.name == "cdp_qa":
|
325 |
+
#print(f"self.config.text_features: {self.config.text_features.keys()}")
|
326 |
features = {
|
327 |
text_feature: datasets.Value("string")
|
328 |
for text_feature in self.config.text_features.keys()
|
|
|
482 |
|
483 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
484 |
|
485 |
+
#print(f"downloaded_files: {downloaded_files['train']}")
|
486 |
|
487 |
return [
|
488 |
datasets.SplitGenerator(
|
|
|
574 |
yield from self._process_file(data_file)
|
575 |
|
576 |
def _process_file(self, data_file, delimiter=",", idx=None, category=None):
|
577 |
+
# print(f"data_file: {data_file}")
|
578 |
with open(data_file, encoding="utf8") as f:
|
579 |
process_label = self.config.process_label
|
580 |
label_classes = self.config.label_classes
|