This is a simple text analytics intro I put together for people with traditional numeric backgrounds that want to venture into text prediction. Some of this work came out of a competition that Skullcandy helped facilitate.
1 of 42
Downloaded 18 times
More Related Content
Text analytics intro
1. Intro 2 text analytics | Ben Taylor @bentaylordata
Text Analytics Are Awesome!
14. HIREVUE | TALENT INTERACTION
Let’s make this easy.
Problem statement:
Expletives + @skullcandy mention?
Good or bad?
15. HIREVUE | TALENT INTERACTION
Negative Sentiment
? 1048940088:
? "I've got two pairs of Ink'd earbuds by @Skullcandy and they both broke in two weeks. I
$#@&ing hate @Skullcandy! #$#@&You”
? 1054044204:
? “$#@& only one headphone stopped working stupid $#@&ing headphones y is it only one
headphone i blame you @skullcandy”
? 1376767884:
? "@skullcandy never buyin another pair of skull candy headphones this is the fourth pair in the
last 2 months that $#@&ed up”
? 141343855:
? “My headphones blew $#@& you skullcandy -___-”
? 16352011:
? “BAHHHHH My SkullCandys are $#@&ing up AGAIN!”
? 1376767884:
? "@skullcandy $#@& skullcandy"
16. HIREVUE | TALENT INTERACTION
Positive Sentiment
? 161547390:
? "Getting some skullcandy fix's. #tight #skullcandy #$#@&ingpumped"
? 1306207039:
? "@skullcandy @VegasJarhead @justine_mom $#@& yeah!"
? 1117713458:
? "@skullcandy $#@&in bass is badass",
? 1117713458:
? "@skullcandy ur headphones are bad ass and have awsome $#@&in bass"
? 1086228384:
? "Just bough a pair of Skullcandy supreme sound Hesh's $#@&ING AWSOME!!! the bass is
truly amazing :)"
? 132303540:
? "@K$#@&INGP I thought you were a man not a pussy. Try Skullcandy. Hit me back and I'll
hook you up."
17. HIREVUE | TALENT INTERACTION
Neutral Sentiment
? 1104061464:
? "@autoerotique @skullcandy #crushers First pair
died after 2 days. Day 2 for new pair. The Alarm is
thrashing my head, un$#@&me these rock”
18. HIREVUE | TALENT INTERACTION
Conclusion
Sentiment Classification Count
Negative 6
Positive 6
Neutral 1
46% chance tweet is negative, now what?
Welcome to the majority of the sentiment solutions on
the market:
Single-word na?ve Bayesian classification
19. HIREVUE | TALENT INTERACTION
Positive Sentiment (second pass)
? 161547390:
? "Getting some skullcandy fix's. #tight #skullcandy #$#@&ingpumped"
? 1306207039:
? "@skullcandy @VegasJarhead @justine_mom $#@& yeah!"
? 1117713458:
? "@skullcandy $#@&in bass is badass",
? 1117713458:
? "@skullcandy ur headphones are bad ass and have awsome $#@&in bass"
? 1086228384:
? "Just bough a pair of Skullcandy supreme sound Hesh's $#@&ING AWSOME!!! the bass is truly amazing :)"
? 132303540:
? "@K$#@&INGP I thought you were a man not a pussy. Try Skullcandy. Hit me back and I'll hook you up.”
? 1104061464:
? "@autoerotique @skullcandy #crushers First pair died after 2 days. Day 2 for new pair. The Alarm is
thrashing my head, un$#@&me these rock”
20. HIREVUE | TALENT INTERACTION
Conclusion
Sentiment Classification Count
Negative 6
Positive ~0
Neutral ~0
~100% chance tweet is negative with tuple assistance. How to find complex
tuples automatically!?
Bayesian bootstrap matrix
Unique words in training cloud
Uniquewordsintrainingcloud
21. HIREVUE | TALENT INTERACTION
Basic sentiment output
Credit: Ben Peters
Keyword Negative positive
warranty 28.7 1
cant 11.8 1
back 11.8 1
break 11.8 1
after 11.1 1
what 9.1 1
never 9.1 1
Don’t 9.1 1
second 8.4 1
side 8.4 1
30. The things we take for granted
You type: Awsome
Computer: It’s actually spelled Awesome
HIREVUE | TALENT INTERACTION
① kitten → sitten (substitution of "s" for "k")
② sitten → sittin (substitution of "i" for "e")
③ sittin → sitting (insertion of "g" at the end)
31. Levenshtein word level
Ref:
I am going skiing tomorrow
Hyp:
I am going skiing on Saturday
HIREVUE | TALENT INTERACTION
35. Group of tweets?
? Once we have categorized tweets we can
build word clouds!!!
Category A
(could be negative sentiment,
low selling areas, etc..)
Category B
(could be positive sentiment,
high selling areas, etc..)
words
words
words
words
words
words
words
words