At the following link you can find a notebook with my implementation from scratch of a Naive Bayes Text Classifier following the algorithm presented in Lecture 16. I trained the model using the twenty_newsgroup dataset from sklearn and i compared the accuracy of my model with other two models from sklearn.
Notebook: https://colab.research.google.com/drive/16HJOrM9psb7A-4RSRIG-L9tfAMF6N6XK?usp=sharing