This document outlines how to perform text mining of Twitter data using R. It describes extracting tweets, cleaning the text, finding frequent words and associations, creating a word cloud, clustering tweets, and topic modeling. The steps include extracting tweets from Twitter, cleaning the text, building a document-term matrix, analyzing frequent words and associations, visualizing words in a cloud, clustering the tweets, and modeling topics. Online resources for learning more about text mining in R are also provided.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
46 views
Text Mining With R - Twitter Data Analysis
This document outlines how to perform text mining of Twitter data using R. It describes extracting tweets, cleaning the text, finding frequent words and associations, creating a word cloud, clustering tweets, and topic modeling. The steps include extracting tweets from Twitter, cleaning the text, building a document-term matrix, analyzing frequent words and associations, visualizing words in a cloud, clustering the tweets, and modeling topics. Online resources for learning more about text mining in R are also provided.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24
Text Mining with R :
Twitter Data Analysis
Wirapong Chansanam, Ph.D.
iSchools, Khon Kaen University, Thailand Outline • Introduction • Setting Up Twitter for Text mining in R • Extracting Tweets • Text Cleaning • Frequent Words and Associations • Word Cloud • Clustering • Topic Modelling • Online Resources Text Mining • unstructured text data • text categorization • text clustering • entity extraction • sentiment analysis • document summarization • R script (Setting Up Twitter for Text mining in R- OK.R, Twitter Data Analysis with R – Text Mining.R) Text mining of Twitter data with R 1. extract data from Twitter 2. clean extracted data and build a document- term matrix 3. find frequent words and associations 4. create a word cloud to visualize important words 5. text clustering 6. topic modelling Outline • Introduction • Setting Up Twitter for Text mining in R • Extracting Tweets • Text Cleaning • Frequent Words and Associations • Word Cloud • Clustering • Topic Modelling • Online Resources Outline • Introduction • Setting Up Twitter for Text mining in R • Extracting Tweets • Text Cleaning • Frequent Words and Associations • Word Cloud • Clustering • Topic Modelling • Online Resources Retrieve Tweets Retrieve recent tweets by @RDataMining Retrieve Tweets Retrieve recent tweets by @RDataMining Outline • Introduction • Setting Up Twitter for Text mining in R • Extracting Tweets • Text Cleaning • Frequent Words and Associations • Word Cloud • Clustering • Topic Modelling • Online Resources Text Cleaning Text Cleaning Text Cleaning Text Cleaning Outline • Introduction • Setting Up Twitter for Text mining in R • Extracting Tweets • Text Cleaning • Frequent Words and Associations • Word Cloud • Clustering • Topic Modelling • Online Resources Frequent Words and Associations Frequent Words and Associations Outline • Introduction • Setting Up Twitter for Text mining in R • Extracting Tweets • Text Cleaning • Frequent Words and Associations • Word Cloud • Clustering • Topic Modelling • Online Resources Word Cloud Outline • Introduction • Setting Up Twitter for Text mining in R • Extracting Tweets • Text Cleaning • Frequent Words and Associations • Word Cloud • Clustering • Topic Modelling • Online Resources Clustering Clustering Outline • Introduction • Setting Up Twitter for Text mining in R • Extracting Tweets • Text Cleaning • Frequent Words and Associations • Word Cloud • Clustering • Topic Modelling • Online Resources Topic model Online Resources • Chapter 10: Text Mining, in book R and Data Mining: Examples and Case Studies http://www.rdatamining.com/docs/RDataMining.pdf • R Reference Card for Data Mining http://www.rdatamining.com/docs/R-refcard-data-mining.pdf • Free online courses and documents http://www.rdatamining.com/resources/ • RDataMining Group on LinkedIn (12,000+ members) http://group.rdatamining.com • RDataMining on Twitter (2,000+ followers) @RDataMining
Download full Text Analytics with Python A Practical Real World Approach to Gaining Actionable Insights from Your Data 1st Edition Dipanjan Sarkar ebook all chapters