Datasets:
Tasks:
Token Classification
Sub-tasks:
word-sense-disambiguation
Languages:
Polish
Size:
1M<n<10M
License:
Update wsd_plwordnet_glex.py
Browse files- wsd_plwordnet_glex.py +18 -4
wsd_plwordnet_glex.py
CHANGED
@@ -47,18 +47,32 @@ class WsdPlwordnetGlex(datasets.GeneratorBasedBuilder):
|
|
47 |
{
|
48 |
"pl_sense": datasets.Value("string"),
|
49 |
"text": datasets.Value("string"),
|
50 |
-
"tokens": datasets.
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
"plWN_lex_id": datasets.Value("string"),
|
53 |
"plWN_syn_id": datasets.Value("string"),
|
54 |
-
"wsd_indices": datasets.Value("
|
55 |
}
|
56 |
)
|
57 |
if self.config.name == "lemma_candidates":
|
58 |
features = datasets.Features(
|
59 |
{
|
60 |
"lemma": datasets.Value("string"),
|
61 |
-
"candidates": datasets.Value("string"),
|
62 |
}
|
63 |
)
|
64 |
return datasets.DatasetInfo(
|
|
|
47 |
{
|
48 |
"pl_sense": datasets.Value("string"),
|
49 |
"text": datasets.Value("string"),
|
50 |
+
"tokens": datasets.features.Sequence(
|
51 |
+
dict(
|
52 |
+
{
|
53 |
+
"index": datasets.Value("int32"),
|
54 |
+
"position": datasets.features.Sequence(
|
55 |
+
length=2,
|
56 |
+
feature=datasets.Value("int32"),
|
57 |
+
),
|
58 |
+
"orth": datasets.Value("string"),
|
59 |
+
"lemma": datasets.Value("string"),
|
60 |
+
"pos": datasets.Value("string"),
|
61 |
+
"ctag": datasets.Value("string"),
|
62 |
+
}
|
63 |
+
),
|
64 |
+
),
|
65 |
+
"phrases": datasets.features.Sequence(datasets.Value("string")),
|
66 |
"plWN_lex_id": datasets.Value("string"),
|
67 |
"plWN_syn_id": datasets.Value("string"),
|
68 |
+
"wsd_indices": datasets.features.Sequence(datasets.Value("int32")),
|
69 |
}
|
70 |
)
|
71 |
if self.config.name == "lemma_candidates":
|
72 |
features = datasets.Features(
|
73 |
{
|
74 |
"lemma": datasets.Value("string"),
|
75 |
+
"candidates": datasets.features.Sequence(datasets.Value("string")),
|
76 |
}
|
77 |
)
|
78 |
return datasets.DatasetInfo(
|