Datasets:

Languages:
Japanese
ArXiv:
DOI:
License:
retarfi commited on
Commit
40b765b
·
verified ·
1 Parent(s): 93f02a8

fix: reason is None

Browse files
economy-watchers-survey-evaluation.py CHANGED
@@ -105,7 +105,9 @@ class EconomyWatchersSurveyDataset(datasets.GeneratorBasedBuilder):
105
  ds_current: Dataset = load_dataset(
106
  EWS_REPO_NAME, "current", revision=self.config.ews_version, split=split
107
  )
108
- if self.config.name != "reason":
 
 
109
  ds_future: Dataset = load_dataset(
110
  EWS_REPO_NAME, "future", revision=self.config.ews_version, split=split
111
  )
 
105
  ds_current: Dataset = load_dataset(
106
  EWS_REPO_NAME, "current", revision=self.config.ews_version, split=split
107
  )
108
+ if self.config.name == "reason":
109
+ ds_current = ds_current.filter(lambda example: example["判断の理由"] is not None)
110
+ else:
111
  ds_future: Dataset = load_dataset(
112
  EWS_REPO_NAME, "future", revision=self.config.ews_version, split=split
113
  )