Question: 2 . [ points 4 0 ] Given the training documents, classify the testing text as either a Positive or Negative sentiment by answering the

2.[points 40] Given the training documents, classify the testing text as either a "Positive" or "Negative" sentiment by answering the questions below.
Training Text:
D1: "I love this movie" (Positive)
D2: "This movie is great" (Positive)
D3: "I hate this movie" (Negative)
D4: "This movie is terrible" (Negative)
Testing Text:
D5: "I love this great movie"
D6: "I hate this terrible movie"
a.[points 2] Tokenize the documents by splitting them into words. Perform case lowering and remove punctuation (if any). Create the vocabulary for the training document.
b.[points 3] Compute the prior class probability P(C), where C is the class label.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!