public void collectionProcessComplete(ProcessTrace trace)
throws ResourceProcessException, IOException {
GIS.PRINT_MESSAGES = false;
POSModel posTaggerModel = POSTaggerME.train(language,
ObjectStreamUtils.createObjectStream(mPOSSamples),
ModelType.MAXENT, tagDictionary, null, 100, 5);
// dereference to allow garbage collection
mPOSSamples = null;