Process annotated text
process_text(
text,
construct_delimiter,
constituent_delimiter,
subconstituent_delimiter,
discontinued_constituent_delimiter_begin,
discontinued_constituent_delimiter_end
)
data.frame A data.frame with three columns: constituents, subconstituents and constructs
annotated_text <- paste0("Greece* {which* is* the* most* beau*ti*ful* coun*try*",
" +I* know* +}was* the* first* place* +we* vi*si*ted* in*",
"Eu*ro*pe* +.")
counts_df <- process_text(annotated_text, "+", " ", "*", "{", "}")