Cyberinfrastructure for Digital Humanities Manager

Slides:



Advertisements
Similar presentations
MY NCBI (module 4.5). MODULE 4.5 PubMed/How to Use MY NCBI Instructions - This part of the: course is a PowerPoint demonstration intended to introduce.
Advertisements

X-Media V2.0 Healthcare Training Jayex Technology Limited X-Media V2.0 March 2010 v
Library Online Catalog Tutorial Pentagon Library Last Updated March 2008.
Downloading eBooks to your nook, Sony Reader, or any reader that uses Adobe format eBooks.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
RIMS II Online Order and Delivery System Tutorial on Downloading and Viewing Multipliers.
New School Websites Teacher Pages. Visit the SCUSD Website for videos tutorials: For more information.
Create Your Own Personalized Augmented Reality Content: It's Easier than You Think! By Courtney Pepe.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
Getting Started Setting a Theme Setting up Pages Making a Menu Adding Video to your Page Setting Up Your Contact Page Extra Website Content.
Introduction to. What is Office 365 Office 365 is the same Office you already know and use every day. Office 365 is powered by “the cloud” which is a.
LGC Website and Customer On-line Tools LGC RESOURCE 2014.
In addition to Word, Excel, PowerPoint, and Access, Microsoft Office® 2013 includes additional applications, including Outlook, OneNote, and Office Web.
EDW647: Internet for Educators Dr. Roger Webster Department of Computer Science Millersville University July 23, 2008 Create.
Online Training for TEXAS TECH UNIVERSITY and TEXAS TECH HSC Hiring Managers Employment Office April 2003.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
A guide for WTPS staff. Overview This document will show you how to link your Remind and Twitter feeds with your Schoolwires website. Post ONCE to either.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
TST BOCES SCOOLS (South Central Organization of (School) Library Systems) INTERLIBRARY LOAN PROCESS…..An Overview Created by Michele Barr, TST ILL Login.
Go to your school’s web locker site Your user name is the first letter of your first name, the first four letters of.
SPSS- Tutorial The following power-point slides show you how to use some of the features in SPSS. A survey of 20 randomly selected companies asked them.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
How to Create an E-Portfolio See a sample e-portfolio at See an example.
3 Apps for Primary Teachers to Organize Center Activities iPossibilities Conference – June 10, 2014 Amanda Hanna
A Web Coordinator guide to creating links. Other tabs and buttons in the ‘create link’ menu: ‘Querysting’ – these are useful for creating ‘pagejumps’
Overview Review Elements
AdisInsight User Guide July 2015
Intro to Digital Humanities
Date Topic Presenter Aug. 25 Intro to Visualization Michael Boyles
IUIE Reporting Basics Workshop
IQ-Tables and Touch-enabled Workflows
Registering for Easy Bib and Creating a Works Cited Page
Weekly Webinar Welcome to the Wednesday webinar!
Step 1: Go to our website crlibrary
Intro to Digital Humanities
FY 2012 Public Service Grants
Intro to R for Humanists
Capitalizing on Social Media
Getting Started Guide.
Cyberinfrastructure for Digital Humanities Manager
R for Literary Analysis
Adding Assignments and Learning Units to Your TSS Course
Collaboration with Google Docs
Midwest NASCOE Tutorial
Managing Your Literature Search Using Zotero
Overview Review Elements
Poster Template for a 1189mm x 841mm poster presentation
Tutorial Tutorial Read all the directions before proceeding
LGC Website, Software updates, Documentation, and Videos
Centene’s Broker Online Self Service Tool User Guide
The Smarter Balanced Assessment Consortium
The Smarter Balanced Assessment Consortium
Welcome to AIC’s Online Community
Library Catalog System
E-permits Tutorial for first-time users
Citation Map Visualizing citation data in the Web of Science
Step 3: You will see this page
Introduction to RefWorks
The Smarter Balanced Assessment Consortium
The Smarter Balanced Assessment Consortium
Adding , Editing, and Assigning Full Text Finder Links
Donegal Women in Business Network 2019
Wells Fargo Toolkit – CreativeBuilder Reference Guide
Find your school and click on it.
WEB Data Mining.
By: Quaneasha Ward & Fadeke Goncalvez
Brilliant. Sharp. Inspiring.
Presentation transcript:

Cyberinfrastructure for Digital Humanities Manager R Twitter Analysis Tassie Gniady Cyberinfrastructure for Digital Humanities Manager UITS Research Technology, Indiana University Pervasive Technology Institute March 3, 2017 Intro Slide Gniady, Tassie. ”R Twitter Analysis." 28 Oct 2016/3 Mar 2017. Digital Arts & Humanities Workshop Series. Scholars' Commons, Wells Library, Indiana University, Bloomington. Retrieved from: http://hdl.handle.net/2022/21288

Digital Arts and Humanities Workshop Series – Spring 2017 Fridays @ noon -- Scholars Commons IQ-Wall Date Topic Presenter Jan. 13 Intro to Digital Humanities Tassie Gniady Jan. 20 Intro to 3D Visualization for Arts and Humanities Michael Boyles Jan. 27 Intro to R Feb. 03 Virtual Reality Bill Sherman Feb. 10 Augmented Reality Chauncey Frend Feb. 17 R for Literary Analysis Feb. 24 IQ-Tables & Touch-Enabled Software Workflows David Reagan Mar. 03 R for Twitter Analysis Mar. 24 3D Scanning and Printing Jeff Rogers Mar. 31 3D Photogrammetry Apr. 07 Network Graphs David Kloster Apr. 14 Advanced Media Chris Eller

Follow along in today's presentation for helpful links: https://iu.box.com/v/rtwitter

What is Sentiment Analysis? Sentiment analysis is also known as opinion mining — it is used to extract subjective information from text. The word “subjective” is exactly why sentiment analysis can be difficult “I love chocolate ice cream as much as I love the sound of nails on a chalkboard.” “I hated nothing about that movie! Nothing!” Let’s not even get started with emojis 😎🤔💩 Very high powered for statistics, but we are using it for text analysis

Karst Account If you don’t already have a Karst account, go ahead and request one right now. https://kb.iu.edu/d/bezu#account

RStudio on Karst Go to https://rstudio.iu.edu

Creating a Project in R Studio from GitHub In R Studio, click on drop down arrow that says “Project: (None)”

Click on the first option ”New Project…” A box should now appear asking you to choose between “New Directory,” “Existing Directory,” and “Version Control.” Choose “Version Control.”

Another box should appear that asks you to choose between “Git” or “Subversion (SVN).” Choose Git. This box should now appear asking for a “Repository URL” and directory name. For the URL we will go to the Cyber DH Text-Analysis GitHub repository at https://github.com/cyberdh/Text-Analysis.git (make sure you open the page in another tab)

The Cyber DH Text-Analysis repository on GitHub should look like this The Cyber DH Text-Analysis repository on GitHub should look like this. Click on the green button labeled “Clone or download.” This dropdown menu should appear. Make sure it says “Clone with HTTPS” in the top left corner. Then click the button with the clipboard at which the arrow is pointing. This will save it to your clipboard. Now go back to the R Studio page.

Now paste the copied URL in the ”Repository URL:” space Now paste the copied URL in the ”Repository URL:” space. Next make sure the “Project directory name:” is Text-Analysis exactly including capitalization and dash. Otherwise you will need to change this in the script every time. Also, make sure you have R version 3.1.1 chosen in the lower left corner where the blue arrow is pointing. Then click the “Create Project” button. You should now see ”Text-Analysis” listed in the project box and “R 3.1.1” in the box just to the right. You now have the Text-Analysis repository loaded on Karst.

1 2 Pulling updates from Cyber DH GitHub repository on R Studio (Karst or Desktop) Make sure you are in the Text-Analysis project. It should say it in the upper right hand corner. Next, make sure you are in the Git tab. Now, there should be a button with a blue arrow pointing down that says Pull. Click on that button. As you make changes, you will have to “stash” them locally. 3

Source Material This script was adapted from Jeffrey Breen’s tutorial “Mining Twitter for Airline Consumer Sentiment.” Breen developed this is simple algorithm to show how data can be easily extracted and quickly synthesized. http://www.inside-r.org/howto/mining-twitter-airline-consumer-sentiment

Overview of process Get data (in this case Twitter has been mined for you and saved into .Rdata files) Load and inspect data Extract text Load opinion lexicons Implement algorithm Test algorithm with sample data first Score twitter data using algorithm Graph the result of scoring

Get data We used TwitteR cruz.tweets = searchTwitter('@tedcruz', n=4000, since="2016-02-02", until="2016-02-03") trump.tweets = searchTwitter('@realDonaldTrump', n=4000, since="2016-02-02", until="2016-02-03") clinton.tweets = searchTwitter('@HillaryClinton', n=4000, since="2016-02-02", until="2016-02-03") sanders.tweets = searchTwitter('@BernieSanders', n=4000, since="2016-02-02", until="2016-02-03”) First tweets were gathered at 2016-02-02 at 11:59pm GMT going back 4,000 from that time

Load Opinion Lexicons We need lists of positive and negative words to use as a guide for scoring: Liu, Minqing Hu and Junsheng Cheng. "Opinion Observer: Analyzing and Comparing Opinions on the Web." Proceedings of the 14th International World Wide Web conference (WWW-2005), May 10-14, 2005, Chiba, Japan. http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html Can add words using the combine c() function to ensure the lists have words relevant to your corpus

Test the Algorithm with Sample Data We have written a function to compile and analyze the tweets (more on that in a minute). Before running the algorithm on all 4,000 tweets, lets test it first with these sentences: “This ice cream is the best! I love this flavor!” “I am so angry at the terrible weather!” “Impressed and amazed: you are peerless in your achievement of unparalleled mediocrity.”

Implement Scoring Algorithm Let’s write a function! One of the great strengths of R is the user's ability to add functions. In fact, many of the functions in R are actually functions of functions. Let’s look again at the RNotebook

Going Further #trumpertantrum! Now that you have a basic sentiment graph, you can use the wordcloud script from last week to look at the top words used to get more insight.

Tassie Gniady Cyberinfrastructure for Digital Humanities Manager More Information Reference this presentation at: https://iu.box.com/v/rtwitter Get to know the Text Analysis repo through our GitHub Page Text Analysis Toolkit If you’d like to make an appointment, please email cyberdh@iu.edu.  Also, check out our website: https://www.indiana.edu/~cyberdh/ for interesting blog posts and written tutorials about R. Contact: Tassie Gniady Cyberinfrastructure for Digital Humanities Manager ctgniady@iu.edu  @tassietheg