Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description of Data: This is the Tweet Sentiment dataset to predict the sentiment of tweets each record consists of the following attributes: The column or

Description of Data: This is the Tweet Sentiment dataset to predict the sentiment of tweets each record consists of the following attributes: The column or features in the dataset: - textID - unique ID for each piece of text - text - the text of the tweet - sentiment - the general sentiment of the tweet - selected_text -[train only] the text that supports the tweet's sentiment 1. Preprocessed text should be included in the tweet data frame as cleaned_text. Plot word cloud for all classes the tweets. (1 Marks)2. Create two objects \( X \) and \( y \). X will be the 'cleaned_text ' column of tweet data frame and y will be the ' Sentiment' column. (5 Marks)1. Create a BoW object and split the data into training and testing sets. Train a Decision tree model and Display the confusion Matrix. 2. Create a Bow object and split the data into training and testing sets. Train a MultinomialNB and decision tree model. Display the confusion Matrix for both train and test. 3. Compare the result of Decision tree and MultinomialNB

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

More Books

Students also viewed these Databases questions