Natural Language Processing

text – transformer-based natural language analysis in R

text is a package for analysing natural language using transformer-based language models. It provides functions for converting text into numerical representations and applying those representations to statistical analysis, prediction and the investigation of linguistic meaning.

The package forms part of the R Language Analysis Suite, which includes related tools for spoken language and topic analysis. Its principal focus is on making pretrained language models accessible within R-based research workflows.

Researchers can use text to examine semantic similarities, derive numerical features from language and investigate relationships between textual information and other measured variables. The package integrates with models available through the Hugging Face ecosystem and provides higher-level functions for a range of language-analysis tasks.

This is free and open source software.

Key Features

  • Generates contextual text embeddings using pretrained transformer models.
  • Provides functions for calculating semantic similarity between texts.
  • Computes distance and similarity matrices from text representations.
  • Supports dimensionality reduction and visualisation of embedding spaces.
  • Provides text-based prediction and statistical modelling functions.
  • Offers facilities for fine-tuning models for specific tasks or domains.
  • Supports named entity recognition using compatible language models.
  • Provides functions for text generation and question answering.
  • Offers tokenisation and token-counting utilities.
  • Supports analysis and aggregation of embedding representations.
  • Provides functions for examining model layers and extracting representations.
  • Supports text-based topic exploration and topic visualisation.
  • Integrates numerical language representations into conventional statistical workflows.
  • Provides an interface to pretrained language models available through Hugging Face.

Website: github.com/OscarKjell/text
Support:
Developer: Oscar Kjell
License: GNU General Public License v3.0

text 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