BREAK: A special NOT condition if depth > 1

Description Usage Arguments Value Examples

View source: R/tquery.r

Description

If depth > 1 in the children, parents or fill function, the children/parents will be retrieved recursively (i.e. children, children of children, etc.). If the look-up conditions (e.g., relation = 'nsubj') are not satisfied, a node will not be matched by the query, but the search will still continue for it's parents/children. The special BREAK look-up function allows you to specify a condition for breaking the recursive loop (lending it's name from the 'break' in a for loop). An example is that you might want to stop the recursive loop in a custom_fill() once it encounters a nested sentence, such as a relative clause: custom_fill(BREAK(relation = 'relcl')).

Usage

1

Arguments

...

name-value pairs for look-up terms. see ?query.

Value

A list, to be used as input to tquery

Examples

1
tquery(NOT(POS='Noun'))  

rsyntax documentation built on June 13, 2021, 9:07 a.m.