Answered step by step
Verified Expert Solution
Link Copied!

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 0 or 1.
Download the dataset and Create a dataframe named as Rest_rev, then check the head, info, and describe methods on created dataframe Rest_rev.(1 Mark)
Perform pre-processing steps like Removing Punctuations, Numbers, and Special Characters, Stop Words in dataset. (1 Mark)
Normalize review by using Stemming or Lemmatization. (1 Mark)
Preprocessed Review should be included in the Rest_rev data frame as cleaned_Review. Plot word cloud for all classes of the Review. (1 Mark)
Create two objects Xand Y. X will be the cleaned_Review ' column of Rest_rev data frame and Y will be the ' liked' column. (5 Marks)
Create a Skip-gram 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 Skip-gram and CBow. Answer without justification will not be awarded marks.
6. Display the HMM POS tagging on the first row of cleaned_Review.(1 Mark)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions