-
Notifications
You must be signed in to change notification settings - Fork 13
/
dep_to_4lang.txt
563 lines (481 loc) · 10 KB
/
dep_to_4lang.txt
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
#Mapping of Stanford dependency relations to 4lang edges.
#
#The line "rel TAB i,j" means the dependency relation rel(x,y) should convert
#to an arrow of color i pointing from x to y and an arrow of color j pointing
#from y to x. "-" means no arrow, "?" means undecided or ambiguous.
#
#Further TAB separated fields may specify binary relations that should hold
#between x and y, the order can be reversed with "!". E.g. HAS will trigger
#x HAS y, !HAS will trigger Y HAS X
acomp 0,-
advcl ?,-
advmod 0,-
agent 1,-
amod 0,-
appos 0,0
aux -,-
auxpass -,-
cc -,-
#each coordinated element appears in its own relations
conj -,-
conj_and -,-
conj_as -,-
conj_but -,-
conj_if -,-
conj_in -,-
conj_less -,-
conj_negcc -,-
conj_nor -,-
conj_of -,-
conj_or -,-
#each coordinated element appears in its own relations
conj_so -,-
conj_whether -,-
cop -,-
#but will be necessary to disambiguate nsubj and csubj
csubj 1,0
#1,0 for copular sentences, 1,- otherwise (just like with nsubj)
csubjpass 2,-
dep 0,-
det ?,?
#Articles will probably trigger some direct action and not have their own nodes
#in the graph
discourse -,-
dobj 2,-
expl -,-
#We shouldn't have to do anything extra here if our theory is perfect, right?
iobj ?,?
#I guess we deny that these really exist.
mwe -,-
#We should handle each of these uniquely
neg 0,-
#Mostly X -0-> "not". "no", "never", and "n't" are posptrocessed into "not"
nn -,-
# "there is no intelligent noun compund analysis. This is likely to be fixed
# once the Penn Treebank represents the branching structure of NPs"
# Until then, this should trigger our own noun compound analysis
# Until we have that, do nothing
npadvmod 0,-
nsubj 1,0
# 1,0 for copular sentences, 1,- otherwise (just like with csubj)
nsubjpass 2,-
num 0,-
number ?,?
#Wouldn't load this on the machine framework
parataxis ?,?
#need to see more examples first, might be handled at the sentence tokenization
#level
#partmod ?,?
#(obsoleted by vmod)
pcomp 2,-
pobj 2,-
poss -,- !HAS
#x HAS y
possessive -,-
preconj -,-
predet -,-
#These two can trigger something once we have quantification...
prep -,-
prep_about -,-
prep_after -,- AFTER
prep_around -,-
prep_as -,-
prep_between -,-
prep_by -,-
prep_during -,-
#This'll be horribly wrong in some cases, e.g. "bread stays soft for several days"
prep_for -,- FOR
prep_from -,- from
prep_in -,- IN
prep_into -,-
prep_like -,-
prep_next_to -,-
#wrong in many cases: in charge of, one of two, group of people (?)
prep_of -,- !HAS
prep_on -,-
#we don't really have this, but I didn't know what to do. Perhaps "not" and IN combined somehow, but we don't have the syntax for it, plus we don't know how negation works
#This is just a few of the prep(c)s, the rest are listed at the end of the file
prep_according_to -,-
prep_at -,-
prep_compared_with -,-
prep_containing -,-
prep_out_of -,- NOTIN
prep_outside_of -,-
prep_over -,-
prep_starting -,-
prep_such_as -,-
prep_than -,-
prep_to -,-
prep_towards -,-
prep_with -,- INSTRUMENT
prep_within -,-
prepc_about -,-
prepc_as -,-
prepc_as_for -,-
prepc_by -,-
prepc_for -,-
prepc_from -,-
prepc_next_to -,-
prepc_of -,-
prepc_out -,-
prepc_regardless_of -,- regardless
prepc_in -,- IN
prepc_since -,-
prepc_smooth -,-
prepc_whether -,-
prepc_with -,-
prepc_without -,- LACK
prt 0,-
punct -,-
#purpcl -,-
#(obsoleted by advcl)
#Maybe y CAUSE x, or do we have something standard for GOAL?
quantmod -,-
#No quantification yet...
rcmod -,-
# cannot be handled uniformly, we handle these in dependency_processor
ref -,-
root -,-
#tells us what the predicate is
tmod -,- AT
#x AT y
vmod ?,?
#This should be two relations based on the role of the first element
# "Truffles picked during the spring are tasty"
# partmod(truffles, picked) -,2
# "Bill tried to shoot demonstrating his incompetence
# partmod(shoot, demonstrating) 0,1
xcomp 2,-
xsubj 1,-
prep_above -,-
prep_across -,-
prep_against -,-
prep_ahead_of -,-
prep_along -,-
prep_among -,-
prep_apart_from -,-
prep_as_for -,-
prep_away_from -,-
prep_based_on -,-
prep_because -,-
prep_because_of -,-
prep_before -,-
prep_behind -,-
prep_below -,-
prep_beneath -,-
prep_beside -,-
prep_beyond -,-
prep_but -,-
prep_by_means_of -,-
prep_close_to -,-
prep_deserving -,-
prep_down -,-
prep_except -,-
prep_except_for -,-
prep_expressing -,-
prep_far_from -,-
prep_followed_by -,-
prep_following -,-
prep_half-baked -,-
prep_if -,-
prep_in_addition_to -,-
prep_in_front_of -,-
prep_in_spite_of -,-
prep_including -,-
prep_inside -,-
prep_instead_of -,-
prep_involving -,-
prep_near -,-
prep_near_to -,-
prep_nearest -,-
prep_off -,-
prep_on_top_of -,-
prep_onto -,-
prep_opposite -,-
prep_out -,-
prep_outside -,-
prep_past -,-
prep_per -,-
prep_pro -,-
prep_showing -,-
prep_since -,-
prep_someone -,-
prep_that -,-
prep_through -,-
prep_together_with -,-
prep_under -,-
prep_until -,-
prep_up -,-
prep_upon -,-
prep_using -,-
prep_veiled -,-
prep_while -,-
prep_without -,-
prep_worth -,-
prepc_according_to -,-
prepc_after -,-
prepc_against -,-
prepc_along -,-
prepc_around -,-
prepc_as_of -,-
prepc_at -,-
prepc_away_from -,-
prepc_based_on -,-
prepc_because_of -,-
prepc_before -,-
prepc_but -,-
prepc_compared_to -,-
prepc_compared_with -,-
prepc_during -,-
prepc_except_for -,-
prepc_far_from -,-
prepc_in_addition_to -,-
prepc_in_spite_of -,-
prepc_including -,-
prepc_inside -,-
prepc_instead_of -,-
prepc_into -,-
prepc_like -,-
prepc_on -,-
prepc_onto -,-
prepc_out_of -,-
prepc_outside -,-
prepc_over -,-
prepc_such_as -,-
prepc_than -,-
prepc_through -,-
prepc_to -,-
prepc_together_with -,-
prepc_towards -,-
prepc_until -,-
prepc_up -,-
prepc_while -,-
############################################################
# Universal Dependencies
# Some lines may occur above, these are commented out below.
############################################################
# clausal modifier of noun
acl -,-
acl:about -,-
acl:after -,-
acl:as -,-
acl:at -,-
acl:based_on -,-
acl:before -,-
acl:between -,-
acl:by -,-
acl:compared_to -,-
acl:compared_with -,-
acl:except_for -,-
acl:for -,-
acl:from -,-
acl:in -,- IN
acl:in_order -,-
acl:including -,-
acl:inside -,-
acl:like -,-
acl:near -,-
acl:next_to -,-
acl:of -,-
acl:on -,-
acl:out_of -,-
acl:rather_than -,-
acl:relcl -,-
acl:than -,-
acl:through -,-
acl:to -,-
acl:with -,- INSTRUMENT
acl:without -,- LACK
# adverbial clause modifier
advcl 0,-
advcl:about -,-
advcl:according_to -,-
advcl:around -,-
advcl:as -,-
advcl:at -,-
advcl:away_from -,-
advcl:based_on -,-
advcl:because_of -,-
advcl:but -,-
advcl:by -,-
advcl:compared_to -,-
advcl:compared_with -,-
advcl:existing -,-
advcl:for -,-
advcl:from -,-
advcl:in -,-
advcl:in_order -,-
advcl:instead_of -,-
advcl:into -,-
advcl:of -,-
advcl:on -,-
advcl:onto -,-
advcl:out -,-
advcl:out_of -,-
advcl:rather_than -,-
advcl:than -,-
advcl:to -,-
advcl:towards -,-
advcl:under -,-
advcl:with -,- INSTRUMENT
advcl:without -,- LACK
# adverbial modifier
# advmod 0,-
# adjectival modifier
# amod 0,-
# appositional modifier
# appos 0,0
# auxiliary
# aux -,-
# passive auxiliary
# auxpass -,-
# case making
case -,-
# coordination
# cc -,-
# preconjunct
cc:preconj -,-
# clausal complement
ccomp 2,-
# compund
compound -,-
# phrasal verb particle
compound:prt 0,-
# conj -,-
conj:and -,-
conj:but -,-
conj:if -,-
conj:negcc -,-
conj:nor -,-
conj:not -,-
conj:of -,-
conj:or -,-
conj:so -,-
conj:well -,-
# cop -,-
#but will be necessary to disambiguate nsubj and csubj
# clausal subject
# csubj 1,0
# 1,0 for copular sentences, 1,- otherwise (just like with nsubj)
# clausal passive subject
# csubjpass 2,-
# dep 0,-
# det ?,?
#Articles will probably trigger some direct action and not have their own nodes
#in the graph
# det:predet -,-
# discourse -,-
# direct object
# dobj 2,-
# expl -,-
# iobj ?,?
mark -,-
# mwe -,-
#We should handle each of these uniquely
# neg 0,-
#Mostly X -0-> "not". "no", "never", and "n't" are posptrocessed into "not"
# nominal modifiers
nmod 0,-
nmod:' -,- HAS
nmod:'s -,- HAS
nmod:about -,-
nmod:above -,-
nmod:according_to -,-
nmod:across -,-
nmod:after -,- AFTER
nmod:against -,-
nmod:agent -,-
nmod:ahead_of -,-
nmod:along -,-
nmod:among -,-
nmod:apart_from -,-
nmod:around -,-
nmod:as -,-
nmod:at -,-
nmod:away_from -,-
nmod:based_on -,-
nmod:because -,-
nmod:because_of -,-
nmod:before -,-
nmod:behind -,-
nmod:below -,-
nmod:beneath -,-
nmod:beside -,-
nmod:between -,-
nmod:beyond -,-
nmod:but -,-
nmod:by -,-
nmod:close_to -,-
nmod:containing -,-
nmod:down -,-
nmod:during -,-
nmod:except -,-
nmod:except_for -,-
nmod:far_from -,-
nmod:following -,-
nmod:for -,- FOR
nmod:from -,-
nmod:given -,-
nmod:if -,-
nmod:in -,- IN
nmod:in_addition_to -,-
nmod:in_front_of -,-
nmod:in_order -,-
nmod:including -,-
nmod:inside -,-
nmod:inside_of -,-
nmod:instead_of -,-
nmod:into -,-
nmod:involving -,-
nmod:less -,-
nmod:like -,-
nmod:near -,-
nmod:nearest -,-
nmod:next_to -,-
# noun phrase as adverbial modifier
nmod:npmod 0,-
nmod:of -,- !HAS
nmod:off -,-
nmod:on -,-
nmod:onto -,-
nmod:opposite -,-
nmod:or -,-
nmod:out -,-
nmod:out_of -,- NOTIN
nmod:outside -,-
nmod:outside_of -,-
nmod:over -,-
nmod:past -,-
nmod:per -,-
nmod:poss -,- !HAS
nmod:rather_than -,-
nmod:since -,-
nmod:subsides -,-
nmod:such_as -,-
nmod:than -,-
nmod:that -,-
nmod:through -,-
nmod:tmod -,- AT
nmod:to -,-
nmod:together_with -,-
nmod:towards -,-
nmod:under -,-
nmod:until -,-
nmod:up -,-
nmod:using -,-
nmod:while -,-
nmod:with -,- INSTRUMENT
nmod:within -,-
nmod:without -,-
# nominal subject
# nsubj 1,0
# passive nominal subject
# nsubjpass 2,-
# numeric modifier
nummod 0,-
# parataxis ?,?
# ref -,-
# root -,-
# tells us what the predicate is
# open clausal complement
# xcomp 2,-