sentopics: Tools for Joint Sentiment and Topic Analysis of Textual Data

A framework that joins topic modeling and sentiment analysis of textual data. The package implements a fast Gibbs sampling estimation of Latent Dirichlet Allocation (Griffiths and Steyvers (2004) <doi:10.1073/pnas.0307752101>) and Joint Sentiment/Topic Model (Lin, He, Everson and Ruger (2012) <doi:10.1109/TKDE.2011.48>). It offers a variety of helpers and visualizations to analyze the result of topic modeling. The framework also allows enriching topic models with dates and externally computed sentiment measures. A flexible aggregation scheme enables the creation of time series of sentiment or topical proportions from the enriched topic models. Moreover, a novel method jointly aggregates topic proportions and sentiment measures to derive time series of topical sentiment.

Version: 0.6.2
Depends: R (≥ 4.0.0)
Imports: Rcpp (≥, methods, quanteda (≥ 3.2.0), data.table (≥ 1.13.6), foreach, future, doFuture, doRNG, RcppHungarian
LinkingTo: Rcpp, RcppArmadillo, RcppProgress
Suggests: ggplot2, ggridges, plotly, RColorBrewer, xts, zoo, testthat, covr, textcat, stringr, sentometrics, spacyr, knitr, rmarkdown
Published: 2022-03-15
Author: Olivier Delmarcelle ORCID iD [aut, cre], Samuel Borms ORCID iD [ctb], Chengua Lin [cph] (Original JST implementation), Yulan He [cph] (Original JST implementation), Jose Bernardo [cph] (Original JST implementation), David Robinson [cph] (Implementation of reorder_within()), Julia Silge ORCID iD [cph] (Implementation of reorder_within())
Maintainer: Olivier Delmarcelle <delmarcelle.olivier at>
License: GPL (≥ 3)
NeedsCompilation: yes
SystemRequirements: C++11
Materials: README NEWS
CRAN checks: sentopics results


Reference manual: sentopics.pdf
Vignettes: Basic usage
Topical time series


Package source: sentopics_0.6.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel: not available
macOS binaries: r-release (arm64): sentopics_0.6.2.tgz, r-release (x86_64): sentopics_0.6.2.tgz, r-oldrel: not available
Old sources: sentopics archive


Please use the canonical form to link to this page.