File f = new File(d, "pos.model.bin");
//File f = new File(d, "tag.bin.gz");
MaxentModel posModel = new opennlp.maxent.io.SuffixSensitiveGISModelReader(f).getModel();
if (useTagDictionary) {
File td = new File(d, "tagdict");
TagDictionary tagDictionary = new POSDictionary(td.getAbsolutePath()); //null;
posTagger = new POSTaggerME((AbstractModel) posModel, tagDictionary);
} else {
// f = new File(d, "dict.bin.gz");
Dictionary dictionary = null; // new Dictionary();
posTagger = new POSTaggerME((AbstractModel) posModel, dictionary);