We want to use Naive Bayes for tagging documents. It is a classification task that we want to assign a class (tag) to each string. We currently have two tags: Sport and Not Sport
Which tag does the sentence A very close game belong to? Using Naive Bayes classifier, calculate the class probability for Sport and Not sport for this sentence based on the dataset and decide about the tag.
Text |
Tag |
“A great game” |
Sports |
“The election was over” |
Not sports |
“Very clean match” |
Sports |
“A clean but forgettable game” |
Sports |
“It was a close election” |
Not sports |