Answered step by step
Verified Expert Solution
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 selectedtext train only the text that supports the tweet's sentiment Preprocessed text should be included in the tweet data frame as cleanedtext. Plot word cloud for all classes the tweets. Marks Create two objects X and y X will be the 'cleanedtext column of tweet data frame and y will be the Sentiment' column. Marks Create a BoW object and split the data into training and testing sets. Train a Decision tree model and Display the confusion Matrix. 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. Compare the result of Decision tree and MultinomialNB
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