Learn R Programming

corpustools (version 0.5.1)

tCorpus$udpipe_clauses: Add columns indicating who did what

Description

An off-the-shelf application of rsyntax for extracting subject-verb clauses. Designed for working with a tCorpus created with udpipe_tcorpus.

Value

a tCorpus

Arguments

column

The name of the column in $tokens to store the results.

tqueries

A list of tQueries. By default uses the off-the-shelf tqueries in udpipe_clause_tqueries

Examples

Run this code
# \donttest{
tc = tc_sotu_udpipe$copy()
tc$udpipe_clauses()
if (interactive()) {
  tc_plot_tree(tc, token, lemma, POS, annotation='clause')
  browse_texts(tc, rsyntax='clause', value='subject')
}
# }

Run the code above in your browser using DataLab