Skip to content

Mohammad8921/NewsTitlesCategorization-NaiveBayesClassifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Titles Categorization using Naive Bayes Algorithm

  • In this project, I implemented a Naive Bayes text classifier from scratch to categorize the titles of news. The categories are:
    • International
    • Sport
    • Political
    • Cultural-artistic
    • Social
    • Scientific-medical
    • Economic
    • Social media
    • Web browsing
    • Video & audio
  • All characters except آ-ی and \s have been removed; Numbers have been replaced by N. Zeros have been handled by Laplacian smoothing.
  • The DataPreprocessor and NaiveBayesClassifier classes have been designed for preprocessing the samples and training/evaluating a Naive Bayes classifier respectively.

About

A Naive-Bayes classifier to categorize titles of persian news

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages