Skip to content

Akis-B/NLP-P1

Repository files navigation

NLP-P1

My code uses KNN to categorize articles.

To run the code:

  1. Make sure train.py, knn.py and tfidf.cpp are in the same directory

  2. Compile C++ tfidf compenent by running g++ -std=c++17 -O2 -o tfidf tfidf.cpp

  3. Run python trainme file (assumes numpy is already installed) python3 train.py

PS: 2 csv files are created for tfidf indexing, the program will ask you how to name them.

About

KNN Program to categorize articles by type according to assignment instructions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors