Datasets:
Commit
·
2183d1f
1
Parent(s):
facc8cf
Add instance example and describe the attributes
Browse files
README.md
CHANGED
@@ -34,7 +34,7 @@ task_ids:
|
|
34 |
|
35 |
# Dataset Card for ssj500k
|
36 |
|
37 |
-
**Important**: there exists another HF implementation of the dataset ([classla/ssj500k](https://huggingface.co/datasets/classla/ssj500k)), but **this one is designed for more general use**. The CLASSLA version seems to expose only the specific training/validation/test annotations used in the CLASSLA library itself, for only a subset of
|
38 |
|
39 |
### Dataset Summary
|
40 |
|
@@ -63,13 +63,85 @@ Slovenian.
|
|
63 |
|
64 |
A sample instance from the dataset (using the config `all_data`):
|
65 |
```
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
```
|
68 |
|
69 |
### Data Fields
|
70 |
|
71 |
-
|
72 |
-
- `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
## Additional Information
|
75 |
|
|
|
34 |
|
35 |
# Dataset Card for ssj500k
|
36 |
|
37 |
+
**Important**: there exists another HF implementation of the dataset ([classla/ssj500k](https://huggingface.co/datasets/classla/ssj500k)), but **this one is designed for more general use**. The CLASSLA version seems to expose only the specific training/validation/test annotations used in the CLASSLA library itself, for only a subset of the data.
|
38 |
|
39 |
### Dataset Summary
|
40 |
|
|
|
63 |
|
64 |
A sample instance from the dataset (using the config `all_data`):
|
65 |
```
|
66 |
+
{
|
67 |
+
'id_doc': 'ssj1',
|
68 |
+
'idx_par': 0,
|
69 |
+
'idx_sent': 0,
|
70 |
+
'id_words': ['ssj1.1.1.t1', 'ssj1.1.1.t2', 'ssj1.1.1.t3', 'ssj1.1.1.t4', 'ssj1.1.1.t5', 'ssj1.1.1.t6', 'ssj1.1.1.t7', 'ssj1.1.1.t8', 'ssj1.1.1.t9', 'ssj1.1.1.t10', 'ssj1.1.1.t11', 'ssj1.1.1.t12', 'ssj1.1.1.t13', 'ssj1.1.1.t14', 'ssj1.1.1.t15', 'ssj1.1.1.t16', 'ssj1.1.1.t17', 'ssj1.1.1.t18', 'ssj1.1.1.t19', 'ssj1.1.1.t20', 'ssj1.1.1.t21', 'ssj1.1.1.t22', 'ssj1.1.1.t23', 'ssj1.1.1.t24'],
|
71 |
+
'words': ['"', 'Tistega', 'večera', 'sem', 'preveč', 'popil', ',', 'zgodilo', 'se', 'je', 'mesec', 'dni', 'po', 'tem', ',', 'ko', 'sem', 'izvedel', ',', 'da', 'me', 'žena', 'vara', '.'],
|
72 |
+
'lemmas': ['"', 'tisti', 'večer', 'biti', 'preveč', 'popiti', ',', 'zgoditi', 'se', 'biti', 'mesec', 'dan', 'po', 'ta', ',', 'ko', 'biti', 'izvedeti', ',', 'da', 'jaz', 'žena', 'varati', '.'],
|
73 |
+
'msds': ['UPosTag=PUNCT', 'UPosTag=DET|Case=Gen|Gender=Masc|Number=Sing|PronType=Dem', 'UPosTag=NOUN|Case=Gen|Gender=Masc|Number=Sing', 'UPosTag=AUX|Mood=Ind|Number=Sing|Person=1|Polarity=Pos|Tense=Pres|VerbForm=Fin', 'UPosTag=DET|PronType=Ind', 'UPosTag=VERB|Aspect=Perf|Gender=Masc|Number=Sing|VerbForm=Part', 'UPosTag=PUNCT', 'UPosTag=VERB|Aspect=Perf|Gender=Neut|Number=Sing|VerbForm=Part', 'UPosTag=PRON|PronType=Prs|Reflex=Yes|Variant=Short', 'UPosTag=AUX|Mood=Ind|Number=Sing|Person=3|Polarity=Pos|Tense=Pres|VerbForm=Fin', 'UPosTag=NOUN|Animacy=Inan|Case=Acc|Gender=Masc|Number=Sing', 'UPosTag=NOUN|Case=Gen|Gender=Masc|Number=Plur', 'UPosTag=ADP|Case=Loc', 'UPosTag=DET|Case=Loc|Gender=Neut|Number=Sing|PronType=Dem', 'UPosTag=PUNCT', 'UPosTag=SCONJ', 'UPosTag=AUX|Mood=Ind|Number=Sing|Person=1|Polarity=Pos|Tense=Pres|VerbForm=Fin', 'UPosTag=VERB|Aspect=Perf|Gender=Masc|Number=Sing|VerbForm=Part', 'UPosTag=PUNCT', 'UPosTag=SCONJ', 'UPosTag=PRON|Case=Acc|Number=Sing|Person=1|PronType=Prs|Variant=Short', 'UPosTag=NOUN|Case=Nom|Gender=Fem|Number=Sing', 'UPosTag=VERB|Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin', 'UPosTag=PUNCT'],
|
74 |
+
'has_ne_ann': True,
|
75 |
+
'has_ud_dep_ann': True,
|
76 |
+
'has_jos_dep_ann': True,
|
77 |
+
'has_srl_ann': True,
|
78 |
+
'has_mwe_ann': True,
|
79 |
+
'ne_tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O'],
|
80 |
+
'ud_dep_head': [5, 2, 5, 5, 5, -1, 7, 5, 7, 7, 7, 10, 13, 10, 17, 17, 17, 13, 22, 22, 22, 22, 17, 5],
|
81 |
+
'ud_dep_rel': ['punct', 'det', 'obl', 'aux', 'advmod', 'root', 'punct', 'parataxis', 'expl', 'aux', 'obl', 'nmod', 'case', 'nmod', 'punct', 'mark', 'aux', 'acl', 'punct', 'mark', 'obj', 'nsubj', 'ccomp', 'punct'],
|
82 |
+
'jos_dep_head': [-1, 2, 5, 5, 5, -1, -1, -1, 7, 7, 7, 10, 13, 10, -1, 17, 17, 13, -1, 22, 22, 22, 17, -1],
|
83 |
+
'jos_dep_rel': ['Root', 'Atr', 'AdvO', 'PPart', 'AdvM', 'Root', 'Root', 'Root', 'PPart', 'PPart', 'AdvO', 'Atr', 'Atr', 'Atr', 'Root', 'Conj', 'PPart', 'Atr', 'Root', 'Conj', 'Obj', 'Sb', 'Obj', 'Root'],
|
84 |
+
'srl_info': [
|
85 |
+
{'idx_arg': 2, 'idx_head': 5, 'role': 'TIME'},
|
86 |
+
{'idx_arg': 4, 'idx_head': 5, 'role': 'QUANT'},
|
87 |
+
{'idx_arg': 10, 'idx_head': 7, 'role': 'TIME'},
|
88 |
+
{'idx_arg': 20, 'idx_head': 22, 'role': 'PAT'},
|
89 |
+
{'idx_arg': 21, 'idx_head': 22, 'role': 'ACT'},
|
90 |
+
{'idx_arg': 22, 'idx_head': 17, 'role': 'RESLT'}
|
91 |
+
],
|
92 |
+
'mwe_info': [
|
93 |
+
{'type': 'IRV', 'word_indices': [7, 8]}
|
94 |
+
]
|
95 |
+
}
|
96 |
```
|
97 |
|
98 |
### Data Fields
|
99 |
|
100 |
+
The following attributes are present in the most general config (`all_data`). Please see below for attributes present in the specific configs.
|
101 |
+
- `id_doc`: a string containing the identifier of the document;
|
102 |
+
- `idx_par`: an int32 containing the consecutive number of the paragraph, which the current sentence is a part of;
|
103 |
+
- `idx_sent`: an int32 containing the consecutive number of the current sentence inside the current paragraph;
|
104 |
+
- `id_words`: a list of strings containing the identifiers of words - potentially redundant, helpful for connecting the dataset with external datasets like coref149;
|
105 |
+
- `words`: a list of strings containing the words in the current sentence;
|
106 |
+
- `lemmas`: a list of strings containing the lemmas in the current sentence;
|
107 |
+
- `msds`: a list of strings containing the morphosyntactic description of words in the current sentence;
|
108 |
+
- `has_ne_ann`: a bool indicating whether the current example has named entities annotated;
|
109 |
+
- `has_ud_dep_ann`: a bool indicating whether the current example has dependencies (in UD style) annotated**;
|
110 |
+
- `has_jos_dep_ann`: a bool indicating whether the current example has dependencies (in JOS style) annotated**;
|
111 |
+
- `has_srl_ann`: a bool indicating whether the current example has semantic roles annotated**;
|
112 |
+
- `has_mwe_ann`: a bool indicating whether the current example has multi-word expressions annotated**;
|
113 |
+
- `ne_tags`: a list of strings containing the named entity tags encoded using IOB2 - if `has_ne_ann=False` all tokens are annotated with `"N/A"`;
|
114 |
+
- `ud_dep_head`: a list of int32 containing the head index for each word (using UD guidelines) - the head index of the root word is `-1`; if `has_ud_dep_ann=False` all tokens are annotated with `-2`;
|
115 |
+
- `ud_dep_rel`: a list of strings containing the relation with the head for each word (using UD guidelines) - if `has_ud_dep_ann=False` all tokens are annotated with `"N/A"`;
|
116 |
+
- `jos_dep_head`: a list of int32 containing the head index for each word (using JOS guidelines) - the head index of the root word is `-1`; if `has_jos_dep_ann=False` all tokens are annotated with `-2`;
|
117 |
+
- `jos_dep_rel`: a list of strings containing the relation with the head for each word (using JOS guidelines) - if `has_jos_dep_ann=False` all tokens are annotated with `"N/A"`;
|
118 |
+
- `srl_info`: a list of dicts, each containing index of the argument word, the head (verb) word, and the semantic role - if `has_srl_ann=False` this list is empty;
|
119 |
+
- `mwe_info`: a list of dicts, each containing word indices and the type of a multi-word expression;
|
120 |
+
|
121 |
+
#### Data fields in 'named_entity_recognition'
|
122 |
+
```
|
123 |
+
['id_doc', 'idx_par', 'idx_sent', 'id_words', 'words', 'lemmas', 'msds', 'ne_tags']
|
124 |
+
```
|
125 |
+
|
126 |
+
#### Data fields in 'dependency_parsing_ud'
|
127 |
+
```
|
128 |
+
['id_doc', 'idx_par', 'idx_sent', 'id_words', 'words', 'lemmas', 'msds', 'ud_dep_head', 'ud_dep_rel']
|
129 |
+
```
|
130 |
+
|
131 |
+
#### Data fields in 'dependency_parsing_jos'
|
132 |
+
```
|
133 |
+
['id_doc', 'idx_par', 'idx_sent', 'id_words', 'words', 'lemmas', 'msds', 'jos_dep_head', 'jos_dep_rel']
|
134 |
+
```
|
135 |
+
|
136 |
+
#### Data fields in 'semantic_role_labeling'
|
137 |
+
```
|
138 |
+
['id_doc', 'idx_par', 'idx_sent', 'id_words', 'words', 'lemmas', 'msds', 'srl_info']
|
139 |
+
```
|
140 |
+
|
141 |
+
#### Data fields in 'multiword_expressions'
|
142 |
+
```
|
143 |
+
['id_doc', 'idx_par', 'idx_sent', 'id_words', 'words', 'lemmas', 'msds', 'mwe_info']
|
144 |
+
```
|
145 |
|
146 |
## Additional Information
|
147 |
|