Description Usage Arguments Value
Runs the grammar rules on the tokens to get clauses (subject - predicate pairs). If you give the quotes (as returned by get.quotes), they will be excluded from being clauses as well. Note: the token ids should be globally unique, see unique_ids. If the tokens contain a boolean 'attack' column, nouns with attack=T are considered for nominal actions
1 | get_clauses(tokens, quotes = NULL)
|
tokens |
a data frame of tokens containing id, parent, relation, pos1 and lemma columns. |
quotes |
optionally, the quotes in long format, i.e. a data frame with quote id, quote role, and token id |
the clauses in long format, i.e. a data frame with clause id, clause role, and token id
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.