Package: quickSentiment 0.3.4

Alabhya Dahal
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.
Authors:
quickSentiment_0.3.4.tar.gz
quickSentiment_0.3.4.tar.gz(r-4.7-any)quickSentiment_0.3.4.tar.gz(r-4.6-any)
quickSentiment_0.3.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
quickSentiment/json (API)
| # Install 'quickSentiment' in R: |
| install.packages('quickSentiment', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:1c621de51f. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 156 | ||
| source / vignettes | OK | 205 | ||
| linux-release-x86_64 | OK | 152 | ||
| wasm-release | OK | 120 |
Exports:BOW_testBOW_trainevaluate_performancelogit_modelnb_modelpipelinepre_processpredict_sentimentqs_negationsrf_modelxgb_model
Dependencies:clicodetoolscpp11data.tabledigestdoParalleldplyrdttenglishfastmatchforeachgenericsglmnetgluehunspellISOcodesiteratorsjsonlitekoRpuskoRpus.lang.enlatticelexiconlifecyclemagrittrMatrixmgsubnaivebayesNLPpillarpkgconfigpurrrqdapRegexquantedaR6rangerRcppRcppEigenrlangshapeslamSnowballCstopwordsstringistringrsurvivalsyllysylly.ensyuzhettextcleantextshapetextstemtibbletidyrtidyselectutf8vctrswithrxgboostxml2yamlzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Transform New Text into a Document-Feature Matrix | BOW_test |
| Train a Bag-of-Words Model | BOW_train |
| Evaluate Model Performance (ROC and Precision-Recall) | evaluate_performance |
| Train a Regularized Logistic Regression Model using glmnet | logit_model |
| Multinomial Naive Bayes for Text Classification | nb_model |
| Run a Full Text Classification Pipeline on Preprocessed Text | pipeline |
| Plot Precision-Recall Curve | plot.quickSentiment_prc |
| Plot ROC Curve | plot.quickSentiment_roc |
| Preprocess a Vector of Text Documents | pre_process |
| Predict Sentiment on New Data Using a Saved Pipeline Artifact | predict_sentiment |
| Print quickSentiment Evaluation Results | print.quickSentiment_eval |
| Standard Negation Words for Sentiment Analysis | qs_negations |
| functions/random_forest_fast.R Train a Random Forest Model using Ranger | rf_model |
| Train a Gradient Boosting Model using XGBoost | xgb_model |