/IR_NB_kNN_classify

Naive Bayes and kNN for text classification from scratch

Primary LanguagePython

Text Classification with Naive Bayes vs KNN

Multinomial Naive Bayes (NB) and k Nearest Neighbor (kNN) implementation from scratch for text classification Text data in Reuters files. Python version 3.8 is used.

Runs with:

python3 classify.py ./reuters21578/ ./stopwords.txt

P.S:

System may need BS4 and numpy library. If so, please run following line on terminal:

python3 -m pip install -r requirements.txt

Implemented by Maral Dicle Maral. January 2022