Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

unselect_nodes

Undo select_nodes


Description

Not strictly required. Only available for elegance and minor memory efficiency

Usage

unselect_nodes(.tokens)

Arguments

.tokens

A tokenIndex in which nodes are selected with select_nodes.

Value

A tokenIndex (without a .nodes attribute)

Examples

tokens = tokens_spacy[tokens_spacy$doc_id == 'text4',]

tq = tquery(relation = "relcl", label = "relative_clause")
tokens = select_nodes(tokens, tq) 
selected_nodes(tokens)

tokens = unselect_nodes(tokens)

is.null(attr(tokens, '.nodes'))

rsyntax

Extract Semantic Relations from Text by Querying and Reshaping Syntax

v0.1.1
GPL-3
Authors
Kasper Welbers and Wouter van Atteveldt
Initial release
2020-10-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.