Natural Language Processing

RTextTools – supervised text classification

This software is no longer maintained.
For actively maintained alternatives, see the Related Software section below.

RTextTools is a text classification package that uses supervised machine learning to assign categories to documents. It provides a workflow for preparing text, training classification models, generating predictions and evaluating their accuracy. The package supports several classification algorithms, allowing users to compare different approaches on the same collection of documents.

The classification process begins by converting text into a document-term matrix, with options for normalisation, token filtering, stemming and term weighting. A container then associates the matrix with known category labels and separates training data from documents awaiting classification. RTextTools can train individual models or multiple algorithms, generate predictions and calculate statistics for assessing their performance. Its ensemble analysis functions help compare agreement between classifiers and identify predictions supported by several models.

This is free and open source software.

Key Features

  • Provides a supervised machine learning workflow for automatic document classification.
  • Supports eight classification algorithms, including support vector machines, SLDA, boosting, bagging, random forests, glmnet, decision trees and neural networks.
  • Creates document-term matrices from text columns and document collections.
  • Supports text preprocessing with punctuation removal, lowercasing and whitespace normalisation.
  • Provides configurable removal of numbers and stopwords.
  • Supports word stemming with selectable language settings.
  • Allows minimum and maximum word lengths to be specified.
  • Supports configurable document-frequency thresholds and removal of sparse terms.
  • Provides n-gram generation for incorporating multiword expressions into classification.
  • Supports term-frequency and TF-IDF weighting.
  • Creates classification containers with separate training and test datasets.
  • Supports training a single classifier or multiple classifiers on the same data.
  • Provides functions for classifying documents using previously trained models.
  • Returns predicted document labels and associated classification probabilities.
  • Supports cross-validation for assessing classification algorithms.
  • Calculates precision, recall and F-scores for evaluating classifier performance.
  • Provides document-level summaries of predicted categories and classifier agreement.
  • Supports ensemble analysis using agreement thresholds across multiple algorithms.
  • Includes summaries of ensemble coverage and precision.
  • Provides utilities for evaluating prediction accuracy against known labels.
  • Includes labelled sample datasets for testing text classification workflows.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/paulkagiri/RTextTools
Support:
Developer: Timothy P. Jurka, Loren Collingwood, Amber E. Boydstun, Emiliano Grossman, Wouter van Atteveldt
License: GNU General Public License v3.0

RTextTools is written in R. Learn R with our recommended free books and free tutorials.


Related Software

R Natural Language Processing Tools
tidytextText mining using dplyr, ggplot2, and other tidy tools
quantedaR package for Quantitative Analysis of Textual Data
text2vecFramework with API for text analysis and natural language processing
tmText Mining Infrastructure in R
srtringiFast and portable character string processing in R
StringrString manipulation in R
UDPipeTokenization, Tagging, Lemmatization and Dependency Parsing
tokenizersConvert natural language text into tokens
spacyrR wrapper around the Python spaCy package
Word VectorsBuild and explore embedding models
syuzhetExtraction of sentiment and sentiment-based plot arcs from text
textTinyRText processing for small or big data
textrecipesPrepares text features for machine learning with tidymodels
stmFits structural topic models to analyse document collections
sentimentrDictionary based sentiment analysis
word2vecTrains word embedding models and explores semantic relationships
textcleanCollection of tools to clean and normalize text
TALLExplore, model, and visualize textual data
corpustoolsVarious tools for analyzing text corpora
wordvectorTrains and explores word and document vector representations
topicmodelsInterface to LDA and CTM models
textAnalyzing natural language with transformers-based large language models

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted