fix
Browse files
economy-watchers-survey-evaluation.py
CHANGED
@@ -128,10 +128,10 @@ class EconomyWatchersSurveyDataset(datasets.GeneratorBasedBuilder):
|
|
128 |
str_label = example["景気の現状判断"]
|
129 |
elif self.config.name == "domain":
|
130 |
str_label = example["関連"]
|
131 |
-
if str_label not in self.info.features["label"].names:
|
132 |
-
str_label = LABEL_REASON_OTHER
|
133 |
elif self.config.name == "reason":
|
134 |
str_label = example["判断の理由"]
|
|
|
|
|
135 |
yield example["id"], {
|
136 |
"id": example["id"],
|
137 |
"text": example["追加説明及び具体的状況の説明"],
|
|
|
128 |
str_label = example["景気の現状判断"]
|
129 |
elif self.config.name == "domain":
|
130 |
str_label = example["関連"]
|
|
|
|
|
131 |
elif self.config.name == "reason":
|
132 |
str_label = example["判断の理由"]
|
133 |
+
if str_label not in self.info.features["label"].names:
|
134 |
+
str_label = LABEL_REASON_OTHER
|
135 |
yield example["id"], {
|
136 |
"id": example["id"],
|
137 |
"text": example["追加説明及び具体的状況の説明"],
|