Skip to content

Its a Text Classification Model which is made using a pipeline consisting of TfidfVectorizer for model preprocessing and Naive Bayes Algo

Notifications You must be signed in to change notification settings

mohantyrohan3/Text_Classification-using-Naive-Bayes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text_Classification

This model is a usecase of Naive Bayes Algorithm

This is a build using a pipeline where all the training data is vectorized using Tfidfvectorizer which is a preprocessing step and then Naive Bayes algo is applied

The Predictions of model are as below:

Girl in a jacket

Steps to use the model:

1. First Clone the model into your Project Directory :

  open your command promt and write :  git clone https://github.com/mohantyrohan3/Text_Classification-using-Naive-Bayes 

2. Then in your .py app import pickle library and write the following code:

  with open('Text_Classification_model','wb') as f:
              model1=pickle.load(f)

3. Now you are ready to go just start Predicting:

  ans=model.predict(['Absence of Doctors'])
  print(categories[ans[0]])

About

Its a Text Classification Model which is made using a pipeline consisting of TfidfVectorizer for model preprocessing and Naive Bayes Algo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published