-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathUDStandard.hs
229 lines (218 loc) · 3.72 KB
/
UDStandard.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
module UDStandard where
------------------------------
-- for checking with UD2 standard
------------------------------
allUDPos :: [(String,String)] -- tag, explanation
allUDPos = [
("ADJ", "adjective"),
("ADP", "adposition"),
("ADV", "adverb"),
("AUX", "auxiliary"),
("CCONJ", "coordinating conjunction"),
("DET", "determiner"),
("INTJ", "interjection"),
("NOUN", "noun"),
("NUM", "numeral"),
("PART", "particle"),
("PRON", "pronoun"),
("PROPN", "proper noun"),
("PUNCT", "punctuation"),
("SCONJ", "subordinating conjunction"),
("SYM", "symbol"),
("VERB", "verb"),
("X", "other")
]
allUDLabels :: [(String,String)] -- dependency label, explanation
allUDLabels = [
("acl", "clausal modifier of noun (adjectival clause)"),
("advcl", "adverbial clause modifier"),
("advmod", "adverbial modifier"),
("amod", "adjectival modifier"),
("appos", "appositional modifier"),
("aux", "auxiliary"),
("case", "case marking"),
("cc", "coordinating conjunction"),
("ccomp", "clausal complement"),
("clf", "classifier"),
("compound", "compound"),
("conj", "conjunct"),
("cop", "copula"),
("csubj", "clausal subject"),
("dep", "unspecified dependency"),
("det", "determiner"),
("discourse", "discourse element"),
("dislocated", "dislocated elements"),
("expl", "expletive"),
("fixed", "fixed multiword expression"),
("flat", "flat multiword expression"),
("goeswith", "goes with"),
("iobj", "indirect object"),
("list", "list"),
("mark", "marker"),
("nmod", "nominal modifier"),
("nsubj", "nominal subject"),
("nummod", "numeric modifier"),
("obj", "object"),
("obl", "oblique nominal"),
("orphan", "orphan"),
("parataxis", "parataxis"),
("punct", "punctuation"),
("reparandum", "overridden disfluency"),
("root", "root"),
("vocative", "vocative"),
("xcomp", "open clausal complement")
]
{-
-- morphological features in en-pud: 34
Case=Acc
Case=Nom
Definite=Def
Definite=Ind
Degree=Cmp
Degree=Pos
Degree=Sup
Foreign=Yes
Gender=Fem
Gender=Masc
Gender=Neut
Mood=Ind
NumType=Card
NumType=Mult
NumType=Ord
Number=Plur
Number=Sing
Person=1
Person=2
Person=3
Polarity=Neg
Poss=Yes
PronType=Art
PronType=Dem
PronType=Int
PronType=Prs
PronType=Rel
Reflex=Yes
Tense=Past
Tense=Pres
VerbForm=Fin
VerbForm=Ger
VerbForm=Inf
VerbForm=Part
-- sv-pud 30
Abbr=Yes
Case=Acc
Case=Gen
Case=Nom
Definite=Def
Definite=Ind
Degree=Cmp
Degree=Pos
Degree=Sup
Foreign=Yes
Gender=Com
Gender=Masc
Gender=Neut
Mood=Imp
Mood=Ind
Number=Plur
Number=Sing
Polarity=Neg
Poss=Yes
PronType=Art
PronType=Ind
PronType=Int,Rel
Tense=Past
Tense=Pres
VerbForm=Fin
VerbForm=Inf
VerbForm=Part
VerbForm=Sup
Voice=Act
Voice=Pass
-- fi-pud 85
Abbr=Yes
AdpType=Post
AdpType=Prep
Case=Abe
Case=Abl
Case=Acc
Case=Ade
Case=All
Case=Com
Case=Ela
Case=Ess
Case=Gen
Case=Ill
Case=Ine
Case=Ins
Case=Nom
Case=Par
Case=Tra
Clitic=Ka
Clitic=Kaan
Clitic=Kin
Clitic=Ko
Clitic=Pa
Connegative=Yes
Degree=Cmp
Degree=Pos
Degree=Sup
Derivation=Inen
Derivation=Inen,Ttain
Derivation=Inen,Vs
Derivation=Ja
Derivation=Ja,Tar
Derivation=Lainen
Derivation=Lainen,Vs
Derivation=Llinen
Derivation=Llinen,Sti
Derivation=Llinen,Vs
Derivation=Minen
Derivation=Sti
Derivation=Sti,Ton
Derivation=Tar
Derivation=Ton
Derivation=Ton,Vs
Derivation=Ttain
Derivation=U
Derivation=Vs
Foreign=Yes
InfForm=1
InfForm=2
InfForm=3
Mood=Cnd
Mood=Imp
Mood=Ind
NumType=Card
NumType=Ord
Number=Plur
Number=Sing
Number[psor]=Plur
Number[psor]=Sing
PartForm=Agt
PartForm=Past
PartForm=Pres
Person=0
Person=1
Person=2
Person=3
Person[psor]=1 -- possessive suffix
Person[psor]=2
Person[psor]=3
Polarity=Neg
PronType=Dem
PronType=Ind
PronType=Int
PronType=Prs
PronType=Rcp
PronType=Rel
Reflex=Yes
Style=Coll
Tense=Past
Tense=Pres
VerbForm=Fin
VerbForm=Inf
VerbForm=Part
Voice=Act
Voice=Pass
-}