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
open your command promt and write : git clone https://github.com/mohantyrohan3/Text_Classification-using-Naive-Bayes
with open('Text_Classification_model','wb') as f:
model1=pickle.load(f)
ans=model.predict(['Absence of Doctors'])
print(categories[ans[0]])