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-Transformers | Library of state-of-the-art pre-trained models |
| Natural Language Toolkit | Suite of open source Python modules, data sets and tutorials |
| Stanford CoreNLP | Extensible annotation-based NLP pipeline |
| spaCy | Industrial strength natural language processing |
| scikit-learn | Machine learning library for Python |
| Gensim | Python-based vector space modeling and topic modeling toolkit |
| flair | Simple framework for state-of-the-art NLP |
| Apache OpenNLP | Machine learning based toolkit |
| DL4J | Deploy and train deep learning models |
| Apache Lucene | Full-featured information retrieval software library |
| UIMA | Implementation of the UIMA specification |
| tidytext | Text mining using dplyr, ggplot2, and other tidy tools |
| text2vec | Framework with API for text analysis and NLP |
| quanteda | R package for Quantitative Analysis of Textual Data |
| Moses | Statistical machine translation system |
Read our verdict in the software roundup.
| R Natural Language Processing Tools | |
|---|---|
| tidytext | Text mining using dplyr, ggplot2, and other tidy tools |
| quanteda | R package for Quantitative Analysis of Textual Data |
| text2vec | Framework with API for text analysis and natural language processing |
| wordcloud | Create attractive word clouds |
| tm | Text Mining Infrastructure in R |
| srtringi | Fast and portable character string processing in R |
| Stringr | String manipulation in R |
| UDPipe | Tokenization, Tagging, Lemmatization and Dependency Parsing |
| tokenizers | Convert natural language text into tokens |
| spacyr | R wrapper around the Python spaCy package |
| Word Vectors | Build and explore embedding models |
| syuzhet | Extraction of sentiment and sentiment-based plot arcs from text |
| textTinyR | Text processing for small or big data |
| sentimentr | Dictionary based sentiment analysis |
| textclean | Collection of tools to clean and normalize text |
| TALL | Explore, model, and visualize textual data |
| corpustools | Various tools for analyzing text corpora |
| topicmodels | Interface to LDA and CTM models |
| text | Analyzing natural language with transformers-based large language models |
| RTextTools | Automatic text classification via supervised learning |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.