jeffreybreen / twitter-sentiment-analysis-tutorial-201107

Code to reproduce the simple sentiment analysis from my presentation
http://jeffreybreen.wordpress.com/2011/07/04/twitter-text-mining-r-slides/
Other
413 stars 550 forks source link

Error reading special characters #2

Open Ppaille383 opened 8 years ago

Ppaille383 commented 8 years ago

I am getting the following error when I run score.sentiment. It appears to be for certain tweets that contain emoticons or non-alpha-numeric characters. Do I need to enter another gsub function to scrub tweets of these things?

Error in tolower(sentence) : invalid input 'Someone take me to MHK to get chipotle and Starbucks í ¾í´˜í ¼í¿¼í ½í¸' in 'utf8towcs'