Quora-Sentiment-Analysis
Based on AFINN-111 to do sentiment-analysis on Quora answers and blogposts .
Here’s what i did
- Scraped answers and blogposts from Quora and conveted them into .txt format .
- Ignored
- Stopwords
- Non-Alpha characters [ # , % , * , ! .. ]
- Words which have no sentiment score defined [words , text , answer … ]
- Used the sentimental score-carrying words in AFINN-111.txt to deduce the overall sentiment of an answer or a blogpost .
Samples
Usage
python3 main.py [parameter]
Parameters:
pick_answer - pick answer directly
pick_profile - pick answers from profile
pip install -r requirements.txt
Known Issues
Enhancements
- Some of the words which aren’t included under AFINN-111.txt are ignored ( assigned a score of 0 ) in this case, however we can deduce score for those words . for example , if the word
hit
always appears in the proximity of words like sad or unhappy , then we can conclude that the word hit
carries a negative sentiment . supporting paper
Note
- The answers referenced under samples are picked up randomly .