/naive-bayes-text-classifier

A text-classifier based on Naive Bayes.

Primary LanguagePython


Naive Bayes Text Classifier

A text-classifier based on Naive Bayes written in Python.

📚 Usage

  1. ⬇️ Clone this repository using the command git clone https://github.com/ZeshanA/naive-bayes-text-classifier
  2. ⚡️ Run the script from the command line as follows:
python3 classifier.py <sample_1> <sample_2> <classification_target>

<sample_1> and <sample_2> are text files containing training sentences.

<classification_target> is the text file you would like to pair with the sample it is most similar to.