Description Usage Arguments Details Value Author(s) Examples
Summarizes the sento_corpus
object and returns insights about the evolution of
documents, features and tokens over time.
1 | corpus_summarize(x, by = "day", features = NULL)
|
x |
is a |
by |
a single |
features |
a |
This function summarizes the sento_corpus
object by generating statistics about
documents, features and tokens over time. The insights can be narrowed down to a chosen set of metadata
features. The same tokenization as in the sentiment calculation in compute_sentiment
is used.
returns a list
containing:
stats |
a |
plots |
a |
Jeroen Van Pelt, Samuel Borms, Andres Algaba
1 2 3 4 5 6 7 8 9 10 | data("usnews", package = "sentometrics")
corpus <- sento_corpus(usnews)
# summary of corpus by day
summary1 <- corpus_summarize(corpus)
# summary of corpus by month for both journals
summary2 <- corpus_summarize(corpus, by = "month",
features = c("wsj", "wapo"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.