-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapertium-grc.grc-ud.rlx
59 lines (43 loc) · 1.33 KB
/
apertium-grc.grc-ud.rlx
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
DELIMITERS = "<.>" ;
LIST Det = det ;
LIST Pr = pr ;
LIST Sent = sent ;
LIST Cm = cm ;
# Universal Dependencies
# ======================
LIST @root = @root ; # The root of the sentence, often a finite verb
LIST @nsubj = @nsubj ; # The nominal subject of the sentence
LIST @amod = @amod ; #
LIST @advmod = @advmod ; # An adverbial modifier
LIST @case = @case ; # The relation of an adposition to its head
LIST @acl = @acl ; # A clause which modifies a nominal
LIST @nmod = @nmod ; # Nominal modifier
LIST @dobj = @dobj ; # The direct object of the sentence
LIST @punct = @punct ; # Any punctuation
LIST @cop = @cop ; #
LIST @nmod:poss = @nmod:poss ;
LIST @obl = @obl ;
LIST @obj = @obj ;
LIST @advcl = @advcl ;
LIST @aux = @aux ;
LIST @parataxis = @parataxis ;
LIST @det = @det ;
LIST @csubj = @csubj ;
LIST @nummod = @nummod ;
LIST @dep = @dep ; # Any remaining dependency
SECTION # mapping
MAP @punct Sent or Cm ;
MAP @det Det ;
MAP @case Pr ;
MAP @obj (n acc) ;
MAP @root (v imp) ;
MAP @advmod (adv) ;
SECTION # relations
SETPARENT @root TO (@0 (*)) ;
SETPARENT @det TO (1* (n)) ;
SETPARENT @case TO (1* (n)) ;
SETPARENT @obj TO (-1* (v)) ;
SETPARENT @punct TO (-1* @root) ;
MAP @obl (n) IF (0 (n) LINK c @case) ;
SETPARENT @obl (0 (n) LINK c @case) TO (1-* (v)) ;
SETPARENT @advmod TO (1* (v)) ;