https://github.com/psibi/senti
A sentiment analyzer using AFINN
https://github.com/psibi/senti
Last synced: 8 months ago
JSON representation
A sentiment analyzer using AFINN
- Host: GitHub
- URL: https://github.com/psibi/senti
- Owner: psibi
- Created: 2012-03-31T14:12:26.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-22T19:48:03.000Z (about 14 years ago)
- Last Synced: 2025-08-22T06:51:54.335Z (10 months ago)
- Language: Python
- Homepage:
- Size: 114 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Senti
---------
Senti is a Sentiment Analyzer based on AFINN.
Usage:
------
An example of how to get the sentiment strength based on input text.
from senti_analysis import *
sample_sentence = "I like her."
print("%6.2f %s" % (sentiment(sample_sentence),sample_sentence))
If it prints a positive value, then it is a positive statement else a negative one.
If it prints zero value, it can be considered as Neutral.