find_nodes: Search for nodes matching specific criteria

Description Usage Arguments Value

Description

You can search on node attributes (lemma, pos) and on attributes of children. The function will return a data frame with the found nodes and a column for each matched child relation. The node attributes allow __i (e.g. lemma_i="bush") to match case insensitive, and __in (e.g. id__in=ids) to match multiple values. The child attributes can be either a single relation name, or a list of node attributes. The return column for children is named after the explicit rename= attribute, defaulting to the relation pattern, if given.

Usage

1
find_nodes(tokens, children = NULL, columns = NULL, ...)

Arguments

tokens

a df of tokens

children

a list of children, each a list of child attribute filters

columns

vector of column names to return from the node

...

node attribute filters

Value

a df with (parent) id and a column for each rel with the respective child id


anon-author/clauses documentation built on May 10, 2019, 11:52 a.m.