sentopics0.7.6 package

Tools for Joint Sentiment and Topic Analysis of Textual Data

as.LDA

Conversions from other packages to LDA

as.tokens.dfm

Convert back a dfm to a tokens object

chainsDistances

Distances between topic models (chains)

chainsScores

Compute scores of topic models (chains)

coherence

Coherence of estimated topics

compute_PicaultRenault_scores

Compute scores using the Picault-Renault lexicon

fit.sentopicmodel

Estimate a topic model

get_ECB_press_conferences

Download press conferences from the European Central Bank

get_ECB_speeches

Download and pre-process speeches from the European Central Bank

JST

Create a Joint Sentiment/Topic model

LDA

Create a Latent Dirichlet Allocation model

LDAvis

Visualize a LDA model using LDAvis

melt

Replacement generic for data.table::melt()

melt.sentopicmodel

Melt for sentopicmodels

mergeTopics

Merge topics into fewer themes

plot.multiChains

Plot the distances between topic models (chains)

plot.sentopicmodel

Plot a topic model using Plotly

print.sentopicmodel

Print method for sentopics models

proportion_topics

Compute the topic or sentiment proportion time series

reexports

Objects exported from other packages

reset

Re-initialize a topic model

rJST

Create a Reversed Joint Sentiment/Topic model

sentiment_breakdown

Breakdown the sentiment into topical components

sentiment_series

Compute a sentiment time series

sentiment_topics

Compute time series of topical sentiments

sentopicmodel

Create a sentopic model

sentopics_date

Internal date

sentopics_labels

Setting topic or sentiment labels

sentopics_sentiment

Internal sentiment

sentopics-conversions

Internal conversions between sentopics models.

sentopics-package

Tools for joining sentiment and topic analysis (sentopics)

topWords

Extract the most representative words from topics

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.

  • Maintainer: Olivier Delmarcelle
  • License: GPL (>= 3)
  • Last published: 2025-10-15