Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The purpose of this analysis is to build a prediction model to predict whether a review on the restaurant is positive or negative. To do
The purpose of this analysis is to build a prediction model to predict whether a review on the restaurant is positive or negative. To do so we will work on Restaurant Review dataset. The dataset contains two columns, "Liked" and "Review". The liked can be or
Download the dataset and Create a dataframe named as Restrev, then check the head, info, and describe methods on created dataframe Restrev. Mark
Perform preprocessing steps like Removing Punctuations, Numbers, and Special Characters, Stop Words in dataset. Mark
Normalize review by using Stemming or Lemmatization. Mark
Preprocessed Review should be included in the Restrev data frame as cleanedReview. Plot word cloud for all classes of the Review. Mark
Create two objects Xand Y X will be the cleanedReview column of Restrev data frame and Y will be the liked' column. Marks
Create a Skipgram object and split the data into training and testing sets. Train a Decision tree model. Display the confusion Matrix for both train and test.
Create a CBoW object and split the data into training and testing sets. Train a Decision tree model. Display the confusion Matrix for both train and test.
Compare Skipgram and CBow. Answer without justification will not be awarded marks.
Display the HMM POS tagging on the first row of cleanedReview Mark
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started