Question: 2 . [ points 4 0 ] Given the training documents, classify the testing text as either a Positive or Negative sentiment by answering the
points Given the training documents, classify the testing text as either a "Positive" or "Negative" sentiment by answering the questions below.
Training Text:
D: "I love this movie" Positive
D: "This movie is great" Positive
D: "I hate this movie" Negative
D: "This movie is terrible" Negative
Testing Text:
D: "I love this great movie"
D: "I hate this terrible movie"
apoints Tokenize the documents by splitting them into words. Perform case lowering and remove punctuation if any Create the vocabulary for the training document.
bpoints Compute the prior class probability PC where C is the class label.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
