Add the branch id as a column to the tokenindex
After splitting trees into branches
get_branch_id(tokens)
tokens |
A tokenindex |
the tokenindex
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.