Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 326 Bytes

README.md

File metadata and controls

4 lines (3 loc) · 326 Bytes

Naive-Bayes

A Naive Bayes classifier to classify tweets as offensive vs. non-offensive.

Tokenizes each tweet by white space, trains to compute P(X = xi), P(Y = yj), and P(X = xi|Y = yi), smooths the weights, and classifies the tokenized document, returning the class with the highest posterior probability for each tweet.