The Sentiment Analysis of Restaurant Reviews project utilizes various machine learning algorithms to determine the sentiment of restaurant reviews. The project covers data preprocessing, model training, evaluation, and prediction.
The text data is preprocessed with the following steps:
- Remove Special Characters: Special characters are cleaned from the text.
- Convert to Lowercase: All text is converted to lowercase to ensure uniformity.
- Remove Stopwords: Common stopwords are removed to focus on meaningful words.
- Apply Stemming: Words are reduced to their root form using stemming.
The CountVectorizer
is used to transform the text into numerical feature vectors suitable for machine learning models.
The following models are trained and evaluated:
- Naive Bayes Classifier
- Logistic Regression
- Random Forest Classifier
Each model is assessed based on its accuracy and other performance metrics.