String languageCode = args[ai++];
String packageName = args[ai++];
String modelName = args[ai];
AbstractModel model = new GenericModelReader(new File(modelName)).getModel();
SentenceModel packageModel = new SentenceModel(languageCode, model,
useTokenEnd, abbreviations, (char[]) null);
packageModel.serialize(new FileOutputStream(packageName));
}