You need to serialize trained models to disk, and then you can deserialize them and prepare a classifier.
After you use the learner using the classifier
AbstractExternalizable.compileTo(classifier,modelFile);
To burn a model to disk.
For reading you will need
AbstractExternalizable.readObject(modelFile);
Take a look at the Java document for AbstractExternalizable .
The model will not be able to accept additional training activities because it has been compiled.
Breck source share