Datasets:
Tasks:
Token Classification
Sub-tasks:
word-sense-disambiguation
Languages:
Polish
Size:
1M<n<10M
License:
Joanna Baran
commited on
Commit
•
e27722d
1
Parent(s):
24e280a
chore: add english IDs loading
Browse files- wsd_polish_datasets.py +4 -0
wsd_polish_datasets.py
CHANGED
@@ -225,6 +225,10 @@ class WsdPolishDataset(datasets.GeneratorBasedBuilder):
|
|
225 |
"index": tok["index"],
|
226 |
"plWN_syn_id": tok["plWN_syn_id"],
|
227 |
"plWN_lex_id": tok["plWN_lex_id"],
|
|
|
|
|
|
|
|
|
228 |
}
|
229 |
for tok in data["wsd"]
|
230 |
],
|
|
|
225 |
"index": tok["index"],
|
226 |
"plWN_syn_id": tok["plWN_syn_id"],
|
227 |
"plWN_lex_id": tok["plWN_lex_id"],
|
228 |
+
"PWN_syn_id": tok["PWN_syn_id"] if "PWN_syn_id" in tok else "",
|
229 |
+
"bn_syn_id": tok["bn_syn_id"] if "bn_syn_id" in tok else "",
|
230 |
+
"mapping_relation": tok["mapping_relation"] if "mapping_relation" in tok else "",
|
231 |
+
|
232 |
}
|
233 |
for tok in data["wsd"]
|
234 |
],
|