dependency
Arguments
The function takes several arguments.
The optional deptype parameter describes the structure of syntactic dependencies.
deptype parameter value |
Relations structure |
bidirectional/bidir |
term1 ↔ term2 ↔ term3 |
forward |
term1 → term2 → term3 |
tree |
term1 → term2
|
By default the deptype value is set to bidir.
The optional syntrel parameter allows to specify the type of syntactic relation between arguments.
Types of Syntactic Relations
Syntactic relation |
syntrel parameter value |
Description |
subject |
subject, sbj |
Relation predicate→subject:
|
adverbial |
adverbial, adv |
Relation predicate→adverbial:
|
object |
object, obj |
Relation predicate→object:
|
modifier |
modifier, mod |
Relation subject→modifier, object→modifier:
|
agent |
agent |
Relation predicate→agent:
|
These are used the following way:
Query |
Relation Structure |
Example |
dependency(forward, obj, mod, term1, term2, term3) |
term1 → (obj) term2 → (mod) term3 |
sign important tender correct previous mistakes |
dependency(tree, mod, mod, term1, term2, term3) |
term2 ← (mod) term1 → (mod) term3 |
definitive agreement on price, American business magnate |