hpprc commited on
Commit
a41cc07
1 Parent(s): fd87848

fix wrong branching

Browse files
Files changed (1) hide show
  1. jsick.py +17 -15
jsick.py CHANGED
@@ -144,6 +144,22 @@ class JSICKDataset(ds.GeneratorBasedBuilder):
144
  data_path = dl_manager.download_and_extract(_URLS[self.config.name])
145
  df: pd.DataFrame = pd.read_table(data_path, sep="\t", header=0)
146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  if self.config.name in ["base", "stress"]:
148
  df = df.rename(
149
  columns={
@@ -167,21 +183,7 @@ class JSICKDataset(ds.GeneratorBasedBuilder):
167
  ),
168
  ]
169
 
170
- elif self.config.name == "stress":
171
- df = df[
172
- [
173
- "pair_ID",
174
- "sentence_A_Ja",
175
- "sentence_B_Ja",
176
- "entailment_label_Ja",
177
- "relatedness_score_Ja",
178
- "sentence_A_Ja_origin",
179
- "entailment_label_origin",
180
- "relatedness_score_Ja_origin",
181
- "rephrase_type",
182
- "case_particles",
183
- ]
184
- ]
185
  return [
186
  ds.SplitGenerator(
187
  name=ds.Split.TEST,
 
144
  data_path = dl_manager.download_and_extract(_URLS[self.config.name])
145
  df: pd.DataFrame = pd.read_table(data_path, sep="\t", header=0)
146
 
147
+ if self.config.name in ["stress", "stress_original"]:
148
+ df = df[
149
+ [
150
+ "pair_ID",
151
+ "sentence_A_Ja",
152
+ "sentence_B_Ja",
153
+ "entailment_label_Ja",
154
+ "relatedness_score_Ja",
155
+ "sentence_A_Ja_origin",
156
+ "entailment_label_origin",
157
+ "relatedness_score_Ja_origin",
158
+ "rephrase_type",
159
+ "case_particles",
160
+ ]
161
+ ]
162
+
163
  if self.config.name in ["base", "stress"]:
164
  df = df.rename(
165
  columns={
 
183
  ),
184
  ]
185
 
186
+ elif self.config.name in ["stress", "stress_original"]:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  return [
188
  ds.SplitGenerator(
189
  name=ds.Split.TEST,