quickSentiment: A Fast and Flexible Pipeline for Text Classification

A high-level pipeline that simplifies text classification into three streamlined steps: preprocessing, model training, and standardized prediction. It unifies the interface for multiple algorithms (including 'glmnet', 'ranger', 'xgboost', and 'naivebayes') and memory-efficient sparse matrix vectorization methods (Bag-of-Words, Term Frequency, TF-IDF, and Binary). Users can go from raw text to a fully evaluated sentiment model, complete with ROC-optimized thresholds, in just a few function calls. The resulting model artifact automatically aligns the vocabulary of new datasets during the prediction phase, safely appending predicted classes and probability matrices directly to the user's original dataframe to preserve metadata.

Version: 0.3.1
Imports: doParallel, foreach, glmnet, magrittr, Matrix, methods, naivebayes, pROC, quanteda, ranger, stopwords, stringr, textstem, xgboost
Suggests: knitr, rmarkdown, spelling
Published: 2026-03-02
DOI: 10.32614/CRAN.package.quickSentiment
Author: Alabhya Dahal [aut, cre]
Maintainer: Alabhya Dahal <alabhya.dahal at gmail.com>
License: MIT + file LICENSE
NeedsCompilation: no
Language: en-US
Citation: quickSentiment citation info
Materials: README, NEWS
CRAN checks: quickSentiment results

Documentation:

Reference manual: quickSentiment.html , quickSentiment.pdf
Vignettes: Introduction to quickSentiment (source, R code)

Downloads:

Package source: quickSentiment_0.3.1.tar.gz
Windows binaries: r-devel: quickSentiment_0.2.0.zip, r-release: quickSentiment_0.2.0.zip, r-oldrel: quickSentiment_0.2.0.zip
macOS binaries: r-release (arm64): quickSentiment_0.2.0.tgz, r-oldrel (arm64): quickSentiment_0.2.0.tgz, r-release (x86_64): quickSentiment_0.2.0.tgz, r-oldrel (x86_64): quickSentiment_0.2.0.tgz
Old sources: quickSentiment archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=quickSentiment to link to this page.