I saved the train model through weka like explained in this LINK
Now i want to load this model in python program and try to test the queries with the help of this model. So i have file called "naivebayes.model" as the saved naive bayes multinomial updatable classifier. I tried the below code with the help of python-weka wrapper. But I am not sure if the model is getting loaded or not
from weka.core.converters import Loader, Saver
import weka.core.jvm as jvm
from weka.classifiers import Classifier, Evaluation
#starting JVM
jvm.start()
classifier = Classifier(classname="weka.classifiers.bayes.NaiveBayesMultinomialUpdateable", options=['-l','naivebayes.model'])
print(classifier)
print (dir(classifier))
#stopping JVM
jvm.stop()
Can anyone please tell me the rite way to do this. Help is appreciated.