Search by Syntactic Relations
In order to find arguments connected by specific syntactic relations use the function dependency().
Syntax
The first optional argument deptype describes the structure of syntactic dependencies.
deptype parameter value |
Description |
Relations structure |
forward |
Only forward relations allowed: from the first term to the last |
term1 → term2 → term3 |
tree |
There are at least two forward relations from the single term and there is no relation between the second and the third ones |
term1 → term2
|
If deptype is not specified, the relation may be oriented both from the first term to the last and vice versa:
-
term1 → term2
-
term2 → term1
The second optional syntrel parameter indicates 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:
|
If both optional parameters are omitted, the function will return the arguments connected by any syntactic relation.
Example