social pharmacy d-pharm 1st year by Pragati K. Mahajan
1018telling story from text 2
1. SMAC LAB, LSU
OCT 19, 2018
SMAC Talks
Telling Stories from Social Media Text 1
Instructor: Dr. Ke (Jenny) Jiang
2. Telling Stories from Social Media Text 1
Collect Text Data
Clean Text
Text Analysis
Visualization
Python, TCAT, Crimson Hexagon…
Remove Stop Words, Stemming
Replacing “/”, “@” and “|” with space
Convert the text to lower case
Remove punctuations
Frequency Analysis, Sentiment Analysis
Entity Detection, Topic Modeling
Word Clouds, Semantic Network Analysis
R, Gephi
Tell a Story
3. Step 1: Collect Text Data Using Crimson Hexagon
Log in Crimson Hexagon
4. Step 1: Collect Text Data Using Crimson Hexagon
Go to Forsight
5. Step 1: Collect Text Data Using Crimson Hexagon
Click @realDonaldTrump
6. Step 1: Collect Text Data Using Crimson Hexagon
Manage — Bulk Export
7. Step 1: Collect Text Data Using Crimson Hexagon
Export 10,000 posts
8. Step 1: Collect Text Data Using Crimson Hexagon
Open exported file — Save as trump.csv
9. Step 1: Collect Text Data Using Crimson Hexagon
Open trump.csv — Delete the first line
10. Step 2: Create/Load a text file
a. Set Working Directory — Directory for trump.csv
11. b. Get a Sample
Step 3: Create/Load a Text File
Output