Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/puneetsl/happyorsad
Sentiment Analysis of a file (Script to know if your text's mood is Happy or Sad)
https://github.com/puneetsl/happyorsad
Last synced: about 2 months ago
JSON representation
Sentiment Analysis of a file (Script to know if your text's mood is Happy or Sad)
- Host: GitHub
- URL: https://github.com/puneetsl/happyorsad
- Owner: puneetsl
- License: gpl-3.0
- Created: 2014-03-03T01:27:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-06T23:43:26.000Z (over 10 years ago)
- Last Synced: 2023-08-14T21:49:56.687Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 199 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HappyOrSad
==========Sentiment Analysis of a file (if text inside file contains happy or sad mood?)
The same code is the working for determining your twitter mood at:
http://mytwitmood.tutafuta.com/## Requirements ##
perl## How to use ##
To run this perl script all you have to do is:
$perl happyorsad.pl <file name>
it would print output in following format:
This text is so Happy!
Happy: 82.56% :-)
Sad: 17.44% :-(## Dictionary taken from ##
Created my own dictionary for bigram analysis also used LIWC2007 dictionary from this source
https://code.google.com/p/negotiations-ling773/source/browse/trunk/resources/LIWC2007.dic?r=2## Added 3 poems ##
I have added 3 poems as test cases for showing the use and accuracy of the results.
Run using:
perl happyorsad.pl poem1.txt
Output:
This text is so Sad!
Happy: 16.79% :-)
Sad: 83.21% :-(## Cite me ##
In case you use this project please cite me using this citation:
Puneet Singh, et al. "Architecture for Automated Tagging and Clustering of Song Files According to Mood." International Journal of Computer Science Issues (IJCSI) 7.4 (2010).## References ##
Pennebaker, J.W., Chung, C.K., Ireland, M., Gonzales, A., & Booth, R.J. (2007). The development and psychometric properties of LIWC2007. [Software manual]. Austin, TX (www.liwc.net)