forked from chewxy/lingo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependencyType_stanford.go
94 lines (86 loc) · 2.79 KB
/
dependencyType_stanford.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
// +build stanfordrel
package lingo
const BUILD_RELSET = "stanfordrel"
//go:generate stringer -type=DependencyType -output=dependencyType_stanford_string.go
// http://nlp.stanford.edu/software/dependencies_manual.pdf
const (
NoDepType DependencyType = iota
Dep
Root
Aux // Auxilliary
AuxPass // passive auxiliary
Cop // Copula
Arg // argument
Agent // agent
Comp // Complement
AComp // adjectival complement
CComp // clausal complement with internal subject
XComp // clausal complement with external subject
Obj // Object
DObj // Direct Object
IObj // Indirect Object
PObj // Object of preposition
Subj // subject
NSubj // Nominal Subject
NSubjPass // passive nominal subject
CSubj // clausal subject
CSubjPass // passive clausal subject
Coordination // coordination (cannot use CC, as it's a POSTag)
Conj // conjunction
Expl // Expletive
Mod // modifier
AMod // adjectival modifier
Appos // Appositional modifier
Advcl // adverbial clause modifier
Det // determiner
Predet // predeterminer
Preconj // Preconjunction
Vmod // reduced, nonfinite verbal modifier
MWE // multiword expression modifier
Mark // marker (word introducing an Advcl or CComp)
AdvMod // adverbial modifier
Neg // negation modifier
RCMod // relative clause modifier
QuantMod // quantifier modifier
NounMod // Noun Compound Modifier (cannot use NN because NN is defined as a POSTag)
NPAdvMod // Noun phrase adverbial modifier
TMod // temporal modifier
Num // Numeric Modifier
NumberElement // element of compound number (cannot use Number because Number is defined as a LexemeType)
Prep // prepositional modifier
Poss // possession modifier
Possessive // possessive modifier ('s)
PRT // phrasal verb partical
Parataxis // Parataxis (words that are next to each other)
GoesWith // GoesWith
Punct // punctuation
Ref // referant
SDep // Semantic Dependent
XSubj // controlling subject
// additional stuff not found in the original, but found in EWT
Case
Compound
NMod
Discourse
NumMod
RelCl
NFinCl
NMod_Poss
NMod_NPMod
Vocative
List
MWPrep // multiword prepositional modifier
Remnant
Acl
NPMod
MDVod
DetMod
// found in stanford nnparser SD models
PComp
MAXDEPTYPE
)
var Modifiers = []DependencyType{AMod}
var Compounds = []DependencyType{Compound}
var DeterminerRels = []DependencyType{Det, DetMod}
var MultiWord = []DependencyType{MWE, MWPrep, Compound, Parataxis}
var QuantifingMods = []DependencyType{QuantMod, NumMod}