quickSentiment: A Fast and Flexible Pipeline for Text Classification

Read full text
Authors: Alabhya Dahal
Cited by: 0

Abstract

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.

Fields of Study & Subjects

Sentiment Analysis and Opinion Mining Text and Document Classification Technologies Computational and Text Analysis Methods

Publication details

Publication date
6 February 2026
Document type
Dataset