-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdependencyType_universal.go
107 lines (80 loc) · 1.61 KB
/
dependencyType_universal.go
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
// +build !stanfordrel
package lingo
const BUILD_RELSET = "universalrel"
//go:generate stringer -type=DependencyType -output=dependencyType_universal_string.go
// http://universaldependencies.github.io/docs/en/dep/all.html
const (
NoDepType DependencyType = iota
Dep
Root
// Core dependents of clausal predicates
// nominal dependencies
NSubj
NSubjPass
DObj
IObj
// predicate dependencies
CSubj
CSubjPass
CComp
XComp
// Noun dependents
// nominal dependencies
NumMod
Appos
NMod
// predicate dependencies
ACl
ACl_RelCl // RCMod in stanford deps
Det
Det_PreDet
// modifier word
AMod
Neg
// Case Marking, preposition, possessive
Case
//Non-Core Dependents of Clausal Predicates
// Nominal dependencies
NMod_NPMod
NMod_TMod
NMod_Poss
// Predicate Dependencies
AdvCl
// Modifier Word
AdvMod
// Compounding and Unanalyzed
Compound
Compound_Part
Name // Unused in English
MWE
Foreign // Unused in English
GoesWith // Unused in English
// Loose Joining Relations
List
Dislocated // Unused in English
Parataxis
Remnant // Unused in English
Reparandum // Unused in English
// Special Clausal Dependents
// Nominal Dependent
Vocative // Unused in English
Discourse
Expl
// Auxilliary
Aux
AuxPass
Cop
// Other
Mark
Punct
// Coordination
Conj
Coordination // CC
CC_PreConj
MAXDEPTYPE
)
var Modifiers = []DependencyType{AMod}
var Compounds = []DependencyType{Compound, Compound_Part}
var DeterminerRels = []DependencyType{Det, Det_PreDet}
var MultiWord = []DependencyType{MWE, Compound, Compound_Part, Parataxis}
var QuantifingMods = []DependencyType{NumMod}