ajanz commited on
Commit
c742c76
1 Parent(s): 31f0ac2

temporary fix for WSD data loader (current data does not contain BN and PWN keys - they were somehow removed from the data)

Browse files
Files changed (1) hide show
  1. wsd_polish_datasets.py +2 -2
wsd_polish_datasets.py CHANGED
@@ -159,7 +159,7 @@ class WsdPolishDataset(datasets.GeneratorBasedBuilder):
159
  "plWN_lex_id": datasets.Value("string"),
160
  # "PWN_syn_id": datasets.Value("string"),
161
  # "bn_syn_id": datasets.Value("string"),
162
- "mapping_relation": datasets.Value("string"),
163
  }
164
  ),
165
  ),
@@ -230,7 +230,7 @@ class WsdPolishDataset(datasets.GeneratorBasedBuilder):
230
  "plWN_lex_id": tok["plWN_lex_id"],
231
  # "PWN_syn_id": tok["PWN_syn_id"],
232
  # "bn_syn_id": tok["bn_syn_id"],
233
- "mapping_relation": tok["mapping_relation"],
234
 
235
  }
236
  for tok in data["wsd"]
 
159
  "plWN_lex_id": datasets.Value("string"),
160
  # "PWN_syn_id": datasets.Value("string"),
161
  # "bn_syn_id": datasets.Value("string"),
162
+ # "mapping_relation": datasets.Value("string"),
163
  }
164
  ),
165
  ),
 
230
  "plWN_lex_id": tok["plWN_lex_id"],
231
  # "PWN_syn_id": tok["PWN_syn_id"],
232
  # "bn_syn_id": tok["bn_syn_id"],
233
+ # "mapping_relation": tok["mapping_relation"],
234
 
235
  }
236
  for tok in data["wsd"]