-
Notifications
You must be signed in to change notification settings - Fork 0
/
process_text.Rd
40 lines (35 loc) · 1.01 KB
/
process_text.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{process_text}
\alias{process_text}
\title{Process annotated text}
\usage{
process_text(
text,
construct_delimiter,
constituent_delimiter,
subconstituent_delimiter,
discontinued_constituent_delimiter_begin,
discontinued_constituent_delimiter_end
)
}
\arguments{
\item{text}{string}
\item{construct_delimiter}{char}
\item{constituent_delimiter}{char}
\item{subconstituent_delimiter}{char}
\item{discontinued_constituent_delimiter_begin}{char}
\item{discontinued_constituent_delimiter_end}{char}
}
\value{
data.frame A data.frame with three columns: constituents, subconstituents and constructs
}
\description{
Process annotated text
}
\examples{
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, "+", " ", "*", "{", "}")
}