A text-classifier based on Naive Bayes written in Python.
- ⬇️ Clone this repository using the command
git clone https://github.com/ZeshanA/naive-bayes-text-classifier
- ⚡️ 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.