Is there anyway to classify the category on give amazon reviews using python

I am trying to find a model or way to classify text which falls into a category and its a positive or negative feedback.

For ex. we have three columns

Review : Camera's not good battery backup is not very good. Ok ok product camera's not very good and battery backup is not very good.

Rating : 2

Topic :['Camera (Neutral)', 'Battery (Neutral)']

My Whole Dataset is like above and Topic is not standard one , Topic value is based on review column.

I want to train model to classify a review that falls into categories and its negative or positive.

I researched a lot but no luck.

Topic text-classification sentiment-analysis python

Category Data Science


This is called sentiment analysis, which is a type of problem in natural language processing.

Sentiment analysis is just a classification problem with a particular type of input. Any of the usual methods for doing feature extraction from text data and classification based on those features (the usual ones will be available in Python) is a possible approach, complete with the usual concerns about model construction, validation, overfitting, etc.

You wrote that you have already tried to use Python sentiment analysis tutorials and have not gotten the performance you want. This is pretty typical of the beginning of a machine learning problem, and many resources on Data Science and on the statistics Stack address improving model performance, such as this post by one of the mods over there.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.