Naive Bayes week 1 assignment

Hi. I need help with Naive Bayes assignment. Please is there anyone who can help

Explain your issue briefly without posting any part of codes that grades your assignment as posting codes or sharing notebook here is considered violation of Code of Conduct.

In case you have encountered error post screenshot of that error.

if you encountered different output than expected output, then post screenshot of that.

if you failed grader submission, then post screenshot of your submission grader with information showing why you failed grader.

The most common mistake on this assignment is missing this section of the instructions for get_word_frequency:

4.1.1 Handling 0 in the Product
Encountering a word that only appears in spam emails or never appears in a spam email may result in  𝑃(word∣spam)=0
  (or the ham analog), leading to the entire product being  0
 . This scenario is undesirable as a single word could make the entire probability  0
 . To mitigate this, you will start by counting spam/ham appearances for every word from 1. By artificially assuming that there is at least one spam and one ham email with every word, you eliminate the possibility of  0
  appearing in the computations.