BREAK: A special NOT condition if depth > 1

View source: R/tquery.r

BREAKR Documentation

A special NOT condition if depth > 1

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

BREAK(...)

Arguments

...

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

Value

A list, to be used as input to tquery

Examples

tquery(NOT(POS='Noun'))  

rsyntax documentation built on June 7, 2022, 9:07 a.m.