rsyntax0.1.4 package

Extract Semantic Relations from Text by Querying and Reshaping Syntax

add_span_quotes

Add span quotes to a source-quote annotations

AND

Use AND search in tquery

annotate

Annotate a tokenlist based on rsyntax queries

annotate_nodes

Annotate a tokenlist based on rsyntaxNodes

annotate_tqueries

Annotate a tokenlist based on rsyntax queries

apply_queries

Apply queries created with tquery

as_tokenindex

Prepare a tokenIndex

BREAK

A special NOT condition if depth > 1

cast_text

Cast annotations to text

chop

Chop of a branch of the tree

climb_tree

Have a node adopt its parent's position

copy_fill

Copy nodes

copy_nodes

Copy nodes

custom_fill

Specify custom fill behavior

fill

Specify custom fill behavior

get_branch_id

Add the branch id as a column to the tokenindex

get_long_ids

Get ids in various forms to extract token_ids

get_nodes

Transform the nodes to long format and match with token data

isolate_branch

Isolate a branch in a dependency tree

mutate_nodes

Mutate nodes

nested_nodes

Search for parents or children in tquery

NOT

Use NOT search in tquery

OR

Use OR search in tquery

pipe

Pipe operator

plot_tree

Create an igraph tree from a sentence

print.tQuery

S3 print for tQuery class

remove_fill

Remove fill

remove_nodes

Remove nodes

reselect_nodes

Within a chain of reshape operations, reapply the tquery

rsyntax_threads

Get the number of threads to be used by rsyntax functions

select_nodes

Apply tquery to initiate reshape operations

selected_nodes

If select_nodes() is used, the selected nodes can be extracted with se...

set_rsyntax_threads

Set number of threads to be used by rsyntax functions

split_UD_conj

Split conjunctions for dependency trees in Universal Dependencies

subset_nodes

Subset a select_nodes selection

syntax_reader

Create a full text browser with highlighted rsyntax annotations

tquery

Create a query for dependency based parse trees in a data.table (CoNLL...

unselect_nodes

Undo select_nodes

Various functions for querying and reshaping dependency trees, as for instance created with the 'spacyr' or 'udpipe' packages. This enables the automatic extraction of useful semantic relations from texts, such as quotes (who said what) and clauses (who did what). Method proposed in Van Atteveldt et al. (2017) <doi:10.1017/pan.2016.12>.

  • Maintainer: Kasper Welbers
  • License: GPL-3
  • Last published: 2022-06-07