sentiment-analysis

Unsupervised Sentiment Analysis

白昼怎懂夜的黑 提交于 2019-11-27 16:43:06
I've been reading a lot of articles that explain the need for an initial set of texts that are classified as either 'positive' or 'negative' before a sentiment analysis system will really work. My question is: Has anyone attempted just doing a rudimentary check of 'positive' adjectives vs 'negative' adjectives, taking into account any simple negators to avoid classing 'not happy' as positive? If so, are there any articles that discuss just why this strategy isn't realistic? A classic paper by Peter Turney (2002) explains a method to do unsupervised sentiment analysis (positive/negative

Emoticons in Twitter Sentiment Analysis in r

吃可爱长大的小学妹 提交于 2019-11-27 13:38:21
How do I handle/get rid of emoticons so that I can sort tweets for sentiment analysis? Getting: Error in sort.list(y) : invalid input Thanks and this is how the emoticons come out looking from twitter and into r: \xed��\xed�\u0083\xed��\xed�� \xed��\xed�\u008d\xed��\xed�\u0089 This should get rid of the emoticons, using iconv as suggested by ndoogan. Some reproducible data: require(twitteR) # note that I had to register my twitter credentials first # here's the method: http://stackoverflow.com/q/9916283/1036500 s <- searchTwitter('#emoticons', cainfo="cacert.pem") # convert to data frame df <-

Is there any other package other than “sentiment” to do Sentiment Analysis in R? [closed]

孤街醉人 提交于 2019-11-27 11:23:39
问题 The "sentiment" package in R was removed from the Cran repository. What are the other packages which can do Sentiment Analysis? For example, how I can rewrite this using other packages? library(sentiment) # CLASSIFY EMOTIONS classify_emotion(some_txt,algorithm="bayes",verbose=TRUE) # classify polarity class_pol = classify_polarity(some_txt, algorithm="bayes") Where documents here is defined as: # DEFINE text some_txt<- c("I am very happy at stack overflow , excited, and optimistic.", "I am

Stanford nlp for python

这一生的挚爱 提交于 2019-11-27 10:49:01
All I want to do is find the sentiment (positive/negative/neutral) of any given string. On researching I came across Stanford NLP. But sadly its in Java. Any ideas on how can I make it work for python? Use py-corenlp Download Stanford CoreNLP The latest version at this time (2018-10-23) is 3.9.2: wget https://nlp.stanford.edu/software/stanford-corenlp-full-2018-10-05.zip https://nlp.stanford.edu/software/stanford-english-corenlp-2018-10-05-models.jar If you do not have wget , you probably have curl : curl https://nlp.stanford.edu/software/stanford-corenlp-full-2018-10-05.zip -O https://nlp

Sentiment analysis using R [closed]

妖精的绣舞 提交于 2019-11-27 09:22:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Are there any R packages that focus on sentiment analysis? I have a small survey where users can write a comment about their experience of using a web-tool. I ask for a numerical ranking, and there is the option of including a comment. I am wondering what the best way of assessing the positiveness or

How to train the Stanford NLP Sentiment Analysis tool

﹥>﹥吖頭↗ 提交于 2019-11-27 03:52:02
Hell everyone! I'm using the Stanford Core NLP package and my goal is to perform sentiment analysis on a live-stream of tweets. Using the sentiment analysis tool as is returns a very poor analysis of text's 'attitude' .. many positives are labeled neutral, many negatives rated positive. I've gone ahead an acquired well over a million tweets in a text file, but I haven't a clue how to actually train the tool and create my own model. Link to Stanford Sentiment Analysis page "Models can be retrained using the following command using the PTB format dataset:" java -mx8g edu.stanford.nlp.sentiment

Sentiment analysis for Twitter in Python [closed]

谁都会走 提交于 2019-11-26 23:44:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for an open source implementation, preferably in python, of Textual Sentiment Analysis (http://en.wikipedia.org/wiki/Sentiment_analysis). Is anyone familiar with such open source implementation I can use? I'm writing an application that searches twitter for some search term, say "youtube", and counts

Unsupervised Sentiment Analysis

空扰寡人 提交于 2019-11-26 22:28:36
问题 I've been reading a lot of articles that explain the need for an initial set of texts that are classified as either 'positive' or 'negative' before a sentiment analysis system will really work. My question is: Has anyone attempted just doing a rudimentary check of 'positive' adjectives vs 'negative' adjectives, taking into account any simple negators to avoid classing 'not happy' as positive? If so, are there any articles that discuss just why this strategy isn't realistic? 回答1: A classic

Sentiment Analysis Dictionaries

僤鯓⒐⒋嵵緔 提交于 2019-11-26 18:47:14
问题 I was wondering if anybody knew where I could obtain dictionaries of positive and negative words. I'm looking into sentiment analysis and this is a crucial part of it. 回答1: The Sentiment Lexicon, at the University of Pittsburgh might be what you are after. It's a lexicon of about 8,000 words with positive/neutral/negative sentiment. It's described in more detail in this paper and released under the GPL. 回答2: Arriving a bit late I'll just note that dictionaries have a limited contribution for

Emoticons in Twitter Sentiment Analysis in r

泪湿孤枕 提交于 2019-11-26 18:18:43
问题 How do I handle/get rid of emoticons so that I can sort tweets for sentiment analysis? Getting: Error in sort.list(y) : invalid input Thanks and this is how the emoticons come out looking from twitter and into r: \xed��\xed�\u0083\xed��\xed�� \xed��\xed�\u008d\xed��\xed�\u0089 回答1: This should get rid of the emoticons, using iconv as suggested by ndoogan. Some reproducible data: require(twitteR) # note that I had to register my twitter credentials first # here's the method: http:/