Skip to content

A news classifier coded in python which uses Naive Bayesian Classifier for classification.

Notifications You must be signed in to change notification settings

anurag93/News-Classifier

 
 

Repository files navigation

News-Classifier


This code was developed as a part of an academic assignment. Aim of the code is to classify news based articles using Naive bayesian classifier.
To run the code use ./news_classifier.py test1.txt . "test1.txt" can be replaced with any text file. 4 test files are already given.

The code used 4 different categories of articles for training and classifies a new article into only these 4 categories. These categories are: Movies, Politics, Scitech, Sports.

File Description:
news_classifier.py- Actual Code.
data.csv- Has training data for classifier.
Training data is inside folders.
test.txt, test2.txt, test3.txt, test4.tx- Test data files

About

A news classifier coded in python which uses Naive Bayesian Classifier for classification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%