get_clauses: Get the clauses for the given sentences

Description Usage Arguments Value

Description

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

Usage

1
get_clauses(tokens, quotes = NULL)

Arguments

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

Value

the clauses in long format, i.e. a data frame with clause id, clause role, and token id


anon-author/clauses documentation built on May 10, 2019, 11:52 a.m.