I have created a naive bayes classifier and has used pickle to store it.
Now everytime i excute my script, pickle is loaded taking almost 10-14 seconds.
Is there any way so that i can keep my pickle object loaded into the ram and can access it from another script?
def load_classifier(self):
f=open("segment_to_topic.pickle","rb")
classifier=pickle.load(f)
f.close()
return classifier