DEV Community

Cover image for Project - Text Classification
Piyush Pravin
Piyush Pravin

Posted on

1 1

Project - Text Classification

Project Link : https://github.com/piyushP7pravin/Text-Classification

MultinomialNB implements the naive Bayes algorithm for multinomially distributed data, and is one of the two classic naive Bayes variants used in text classification.

I have used Multinomial Naive Bayes algorithm to classify the given text document to different categories.
I have used 20,000 documents from 20 newspaper categories, made dataset from the given documents. Built a Multinomial Naïve Bayes Classifier from Scratch that classifies any test document to one of the 20 categories. Made a comparison report between the results of our Naive Bayes implementation with Sklearn Multinomial Naïve Bayes Classifier.
Overall accuracy seems to be almost same for both cases.

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay