Map<String, String> opts = ConfigFileProcessor.readInConfig(configFile, pathKeys);
if (opts.get("taggertype").equalsIgnoreCase("dummy")) {
return new DummyPOSTagger();
}
MaxentModel mem = new ZLMEM(new File(opts.get("maxentmodel")));
POSPriorModel posPrior = null;
if (opts.get("priormodel") != null) {
posPrior = new POSPriorModel(opts.get("priormodel"), opts.get("priormodelvocab"));
}
POSTagFex fexer = new POSTagFex(posPrior);
res = new BasicPOSTagger(mem, fexer, opts.get("sequencemodel"));
res.setBeta(Double.parseDouble(opts.get("beta")));