Skip to contents

This function tags conjuncts in text that has been previously _ST tagged and tokenized.

Usage

dtag_conjuncts(x)

Arguments

x

A character vector of strings that have been tokenized and tagged with _ST tags.

Value

A character vector with adverbial subordinating conjunctions <CONJ> tags added.

Details

The function adds the <CONJ> tag to the relevant token.

In case of conjuncts that are part of a multi-word expression (e.g. in_IN addition_NN), the function adds the <CONJ> tag to the first token, and a _NULL tag to the second (e.g. "in_IN <CONJ>" , "addition_NULL").

Examples

if (FALSE)  x <- c("In_IN", "addition_NN", ",_,", "the_DT", "project_NN",
"went_VBD", "way_NN", "over_RB", "budget_NN", "._.")
dtag_conjuncts(x)
#> Error in eval(expr, envir, enclos): object 'x' not found