Description Usage Arguments Value
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.
1 | find_nodes(tokens, children = NULL, columns = NULL, ...)
|
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 |
a df with (parent) id and a column for each rel with the respective child id
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.