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

get_branch_id

Add the branch id as a column to the tokenindex


Description

After splitting trees into branches

Usage

get_branch_id(tokens)

Arguments

tokens

A tokenindex

Value

the tokenindex

Examples

tokens = tokens_spacy[tokens_spacy$doc_id == 'text4',]
tokens = as_tokenindex(tokens)


tokens2 = isolate_branch(tokens, relation = 'relcl', copy_parent = TRUE)
get_branch_id(tokens2)

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.