Natural Language Processing

tidytext – text mining using tidy data principles

tidytext is a package for text mining that makes textual data accessible to the tidyverse collection of data analysis tools. It represents text as a table in which each row contains a single token, with additional columns identifying the document and other relevant information.

This approach allows researchers to combine text processing with familiar data manipulation and visualisation techniques. Documents can be broken into words, sentences or n-grams, analysed using established statistical methods, and joined with sentiment dictionaries or other reference data. The package is particularly useful for exploring document collections, comparing vocabulary across groups and examining patterns in language.

This is free and open source software.

Key Features

  • unnest_tokens() converts textual data into tidy tables containing individual tokens.
  • Supports word, sentence, paragraph, character, n-gram and other tokenisation methods.
  • Provides sentiment lexicons including AFINN, Bing and NRC through get_sentiments().
  • Calculates term frequency-inverse document frequency using bind_tf_idf().
  • Enables word frequency analysis across documents, authors, categories and other groups.
  • Supports analysis of word pairs, bigrams and relationships between frequently occurring terms.
  • Provides functions for converting between tidy text, document-term matrices and document-feature matrices.
  • Works with dplyr for filtering, grouping, joining and summarising textual data.
  • Integrates with ggplot2 for visualising term frequencies, sentiment patterns and other results.
  • Enables comparison of document collections using tidy data operations and statistical techniques.
  • Includes example datasets and documentation covering practical text-mining workflows.

Website: github.com/juliasilge/tidytext
Support:
Developer: Julia Silge, David Robinson
License: MIT License

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


Related Software

Natural Language Processing
PyTorch-TransformersLibrary of state-of-the-art pre-trained models
Natural Language ToolkitSuite of open source Python modules, data sets and tutorials
Stanford CoreNLPExtensible annotation-based NLP pipeline
spaCyIndustrial strength natural language processing
scikit-learnMachine learning library for Python
GensimPython-based vector space modeling and topic modeling toolkit
flairSimple framework for state-of-the-art NLP
Apache OpenNLPMachine learning based toolkit
DL4JDeploy and train deep learning models
Apache LuceneFull-featured information retrieval software library
UIMAImplementation of the UIMA specification
tidytextText mining using dplyr, ggplot2, and other tidy tools
text2vecFramework with API for text analysis and NLP
quantedaR package for Quantitative Analysis of Textual Data
MosesStatistical machine translation system

Read our verdict in the software roundup.

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
wordcloudCreate attractive word clouds
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
sentimentrDictionary based sentiment analysis
textcleanCollection of tools to clean and normalize text
TALLExplore, model, and visualize textual data
corpustoolsVarious tools for analyzing text corpora
topicmodelsInterface to LDA and CTM models
textAnalyzing natural language with transformers-based large language models
RTextToolsAutomatic text classification via supervised learning

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