Sentiment Analysis on Amazon user reviews.
- create a virtual environment
- Install packages using requirements.txt
- Go to python Console
import nltk
nltk.download('vader_lexicon')
nltk.download('gutenberg')
- Install R
- Check if R runs in Command Line
- Install Rvest library in R
- To install Open R in Cmd
install.packages('rvest')
- If installation fails try
sudo apt-get install libxml2-dev
- Now start app using
python manage.py runserver
- To view past result go to http://127.0.0.1:8000/analyse/data/
- go to http://127.0.0.1:8000/scrape/data/ (Check Issues below if this fails)
The R code is written to scrape the reviews from Amazon product pages. The scrape code no longer works, maybe due to change in Website, you need to fix this to make this project fully working.
To test this quickly, delete the contents in the userReviews.txt and paste few reviews into userReviews.txt in similar format as before.
The existing system shows top positive and negative reviews, but these are of overall product. We still need to search for the specific feature we are looking for in the product, for example, if we are looking for a mobile which has good camera, but the mobile is rated bad due to its battery problem. There is no simple way to identify this, unless we manually read the reviews.
We should have an option to search for specific feature of the product, for example we should be able to search for the reviews related to camera only of a particular mobile device.
The problem can be solved by dividing into two modules as below