Module 3 NLP
Module 3 NLP
The model assumes that 60% of all reviews are negative and 40% are
positive. These prior probabilities will be multiplied with likelihood values
when making predictions.
Step 3: Compute Likelihoods P(w|c) using Add-One Smoothing
• Word Count in Training Data
• For each word in our vocabulary, we count how often it appears in
Negative (-) and Positive (+) reviews.
Applying Laplace Smoothing