View source: R/split_sentence.R
split_sentence | R Documentation |
Split sentences.
split_sentence(x, ...)
## Default S3 method:
split_sentence(x, ...)
## S3 method for class 'data.frame'
split_sentence(x, text.var = TRUE, ...)
x |
A |
text.var |
The name of the text variable. If |
... |
Ignored. |
Returns a list of vectors of sentences or a expanded
data.frame
with sentences split apart.
(x <- c(paste0(
"Mr. Brown comes! He says hello. i give him coffee. i will ",
"go at 5 p. m. eastern time. Or somewhere in between!go there"
),
paste0(
"Marvin K. Mooney Will You Please Go Now!", "The time has come.",
"The time has come. The time is now. Just go. Go. GO!",
"I don't care how."
)))
split_sentence(x)
data(DATA)
split_sentence(DATA)
## Not run:
## Kevin S. Dias' sentence boundary disambiguation test set
data(golden_rules)
library(magrittr)
golden_rules %$%
split_sentence(Text)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.