Joanna Baran commited on
Commit
9e5d092
·
1 Parent(s): 0335e07

fix: add english IDs loading

Browse files
Files changed (1) hide show
  1. wsd_polish_datasets.py +3 -3
wsd_polish_datasets.py CHANGED
@@ -228,9 +228,9 @@ class WsdPolishDataset(datasets.GeneratorBasedBuilder):
228
  "index": tok["index"],
229
  "plWN_syn_id": tok["plWN_syn_id"],
230
  "plWN_lex_id": tok["plWN_lex_id"],
231
- "PWN_syn_id": tok["PWN_syn_id"] if "PWN_syn_id" in tok else "",
232
- "bn_syn_id": tok["bn_syn_id"] if "bn_syn_id" in tok else "",
233
- "mapping_relation": tok["mapping_relation"] if "mapping_relation" in tok else "",
234
 
235
  }
236
  for tok in data["wsd"]
 
228
  "index": tok["index"],
229
  "plWN_syn_id": tok["plWN_syn_id"],
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"]