user3930701
user3930701

Reputation: 31

Sentiment analysis python

I am doing my university project on python. I am new to python. I have been given the below project

Build a classifier that predicts whether a restaurant review is positive or negative, based only on the text. Use reviews from TripAdvisor. Winning team gets a bonus.

Now in this project i have extracted the data from Tripadvisor but can someone please help me on how do it classify them ? i did not understand much in class so can someone please tell me a good video tutorial where i can learn this classification

Thanks in advance Rob

Upvotes: 3

Views: 1121

Answers (1)

brunsgaard
brunsgaard

Reputation: 5168

I see the following step

  1. Fetch data from TripAdvisor
  2. Analyse data and extract name of restaurant and run NLTK Naive Bayes Classification on the test reviews.

This can be done in many ways, I hope you are a fast learner because this is pretty hard if you are not an expirienced coder. But go get scrapy, this will be your tool of choise for such an assignment. This is a hard one, but scrapy has very good docs and tutorials. But if you are not a experienced coder, this will take some time.

Scrapy can also help you process the data (html), you have to extract the name of the resurant and run NLTK Naive Bayes Classification on the reviews

Last but not least you have to use a scrapy pipeline to save the data. I will suggest sqlite for your project..

Feel free to ask questions if you need to, but make them count. We can not do your project for you.. But we can certainly help you in the right direction and help you with some of the coding issue.. But try you best before asking, we hate lazy people that dont try for them self and research before asking ;)

Best of luck with your project and welcome to Stackoverflow.

Upvotes: 2

Related Questions