<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sentiment analysis of tweets to identify emotions (happy, sad, angry, worried etc.) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Sentiment-analysis-of-tweets-to-identify-emotions-happy-sad/m-p/505782#M1217</link>
    <description>&lt;P&gt;&lt;A href="https://www.quora.com/How-can-I-identify-emotions-happy-sad-angry-worried-etc-with-SAS-software?__nsrc__=4" target="_self"&gt;This question also appeared on Quora recently&lt;/A&gt;, and Ralph Winters provided a helpful answer.&amp;nbsp; Excerpt (see &lt;A href="https://www.quora.com/How-can-I-identify-emotions-happy-sad-angry-worried-etc-with-SAS-software?__nsrc__=4" target="_self"&gt;full topic&lt;/A&gt; for more):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="ui_qtext_para"&gt;Using only base SAS software you are limited in what you can do, but you can apply some simple algorithms to do this.&lt;/P&gt;
&lt;P class="ui_qtext_para"&gt;e.g you can parse the words using some of the built-in Perl functions, eliminate the stop words (‘the’, ‘ a ‘, etc.), performing stemming (‘complain’=’complaining’), etc. and then write the keywords out into a SAS dataset along with the document #.&lt;/P&gt;
&lt;P class="ui_qtext_para"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="ui_qtext_para"&gt;Then you can merge with a standard sentiment dictionary for positive and negative connotations and assign +1 (for positive word) or -1 (negative word) to a running total. Then summarize the assignments by each document and you have a sentiment metric.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 18 Oct 2018 22:08:22 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2018-10-18T22:08:22Z</dc:date>
    <item>
      <title>Sentiment analysis of tweets to identify emotions (happy, sad, angry, worried etc.)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Sentiment-analysis-of-tweets-to-identify-emotions-happy-sad/m-p/502265#M633</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-subject"&gt;&lt;FONT size="3" color="#993300"&gt;Dear all,&lt;/FONT&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;This question was posted on that forum over a year ago. I want an answer to the same question. I've the exact case.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;Can anyone help me please?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp; Sentiment analysis of tweets to identify emotions (happy, sad, angry, worried etc.)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV class="MessageReadByModeratorCell lia-moderation-moderated"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-right"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="lia-message-options"&gt;&lt;DIV class="lia-menu-navigation-wrapper lia-menu-action message-menu"&gt;&lt;DIV class="lia-menu-navigation"&gt;&lt;DIV class="dropdown-default-item"&gt;&lt;DIV class="dropdown-positioning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;&lt;SPAN class="DateTime lia-message-posted-on lia-component-common-widget-date"&gt;&lt;SPAN class="local-date"&gt;‎10-08-2017&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt;05:38 AM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to know if SAS Sentiment Analysis studio or another SAS tool&amp;nbsp;can help&amp;nbsp;identify emotions such as happy, sad, anger etc.&lt;/P&gt;&lt;P&gt;I have a dataset of tweets which&amp;nbsp;is already classified as positive, negative or neutral, I wanted to go further to try and identify the sentiment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible, How do I go about doing this analysis in SAS sentiment analysis studio or other SAS tools ?&lt;/P&gt;&lt;P&gt;I currently have access to Base SAS, Enterprise Miner, SAS sentiment analysis studio and SAS VA. Do I need some other tool?&lt;/P&gt;&lt;P&gt;Example of a positive tweet which would be classified as happy would be -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@VirginAmerica, you're doing a great job adding little luxuries/aesthetics that improve the air travel experience. Thank you. Keep it up!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Oct 2018 17:17:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Sentiment-analysis-of-tweets-to-identify-emotions-happy-sad/m-p/502265#M633</guid>
      <dc:creator>DAN15</dc:creator>
      <dc:date>2018-10-07T17:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sentiment analysis of tweets to identify emotions (happy, sad, angry, worried etc.)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Sentiment-analysis-of-tweets-to-identify-emotions-happy-sad/m-p/503078#M762</link>
      <description>&lt;P&gt;I think sentiment analysis is usually a score along a continuum, with one end of the scale registered as&amp;nbsp;&lt;STRONG&gt;negative&lt;/STRONG&gt; and the other as&amp;nbsp;&lt;STRONG&gt;positive&lt;/STRONG&gt;, and the midrange is simply&amp;nbsp;&lt;STRONG&gt;neutral&lt;/STRONG&gt;.&amp;nbsp; In this model, discrete emotions like "happy" "sad" "angry" are not part of the ruling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.mwsug.org/proceedings/2015/AA/MWSUG-2015-AA-06.pdf" target="_self"&gt;This interesting paper from the Midwest SAS Users Group&lt;/A&gt; describes how you might achieve something close to what you want by relying on catchphrases.&amp;nbsp; Emoticons or emojis may also play a role.&amp;nbsp; &lt;A href="http://support.sas.com/resources/papers/proceedings13/104-2013.pdf" target="_self"&gt;See this paper&lt;/A&gt;&amp;nbsp;and &lt;A href="https://blogs.sas.com/content/hiddeninsights/2018/07/16/role-emojis-sentiment-analysis/" target="_self"&gt;this blog post&lt;/A&gt;.&amp;nbsp; In the end, this might be a machine learning problem, where you build a model using training data where you already know the conveyed emotion, and you then score your test data based on what the algorithm has learned from those patterns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt; a few more thoughts based on some internal discussion here at SAS:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS software that supports NLP (natural language processing)&amp;nbsp; and sentiment analysis will score text for "general feeling or opinion", not emotion (which is different).&amp;nbsp;&amp;nbsp;Consider a tweet that features&amp;nbsp;the word ‘position’ to highlight that you&amp;nbsp;are ‘for or against’ something. You can have a positive attitude towards it or a negative attitude. But, the algorithms do&amp;nbsp;not trying to distinguish if you are positive because you are happy, content, joyful or just peaceful, or if you are negative about something because you are sad, angry, or nervous.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are no real dependable cues to a person’s emotional state in text, partially because many people do not understand their own emotions well enough to depict or name them, even if you asked them to. (This is obvious if you've ever been part of a text-message conversation that results in hurt feelings because one or both parties misreads emotions -- part of the human experience now, it seems.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider these examples:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;"My wife is sorry that we don't yet have a Wegmans in the neighborhood." - maybe&amp;nbsp;&lt;STRONG&gt;sad&lt;/STRONG&gt; for my wife, but&amp;nbsp;&lt;STRONG&gt;positive&lt;/STRONG&gt; for the Wegmans brand&lt;/LI&gt;
&lt;LI&gt;"Yay! I haven't stopped celebrating since the Patriots lost last week!" - maybe&amp;nbsp;&lt;STRONG&gt;happy&lt;/STRONG&gt; for me, but&amp;nbsp;&lt;STRONG&gt;negative&lt;/STRONG&gt; for the Patriots. (... and yes, I know they actually won last week. It's just an example.)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 10 Oct 2018 15:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Sentiment-analysis-of-tweets-to-identify-emotions-happy-sad/m-p/503078#M762</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-10-10T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sentiment analysis of tweets to identify emotions (happy, sad, angry, worried etc.)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Sentiment-analysis-of-tweets-to-identify-emotions-happy-sad/m-p/505782#M1217</link>
      <description>&lt;P&gt;&lt;A href="https://www.quora.com/How-can-I-identify-emotions-happy-sad-angry-worried-etc-with-SAS-software?__nsrc__=4" target="_self"&gt;This question also appeared on Quora recently&lt;/A&gt;, and Ralph Winters provided a helpful answer.&amp;nbsp; Excerpt (see &lt;A href="https://www.quora.com/How-can-I-identify-emotions-happy-sad-angry-worried-etc-with-SAS-software?__nsrc__=4" target="_self"&gt;full topic&lt;/A&gt; for more):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="ui_qtext_para"&gt;Using only base SAS software you are limited in what you can do, but you can apply some simple algorithms to do this.&lt;/P&gt;
&lt;P class="ui_qtext_para"&gt;e.g you can parse the words using some of the built-in Perl functions, eliminate the stop words (‘the’, ‘ a ‘, etc.), performing stemming (‘complain’=’complaining’), etc. and then write the keywords out into a SAS dataset along with the document #.&lt;/P&gt;
&lt;P class="ui_qtext_para"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="ui_qtext_para"&gt;Then you can merge with a standard sentiment dictionary for positive and negative connotations and assign +1 (for positive word) or -1 (negative word) to a running total. Then summarize the assignments by each document and you have a sentiment metric.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 18 Oct 2018 22:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Sentiment-analysis-of-tweets-to-identify-emotions-happy-sad/m-p/505782#M1217</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-10-18T22:08:22Z</dc:date>
    </item>
  </channel>
</rss>

