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")));
TaggingAlgorithm alg = (opts.get("taggingalgorithm") == null || opts.get("taggingalgorithm").equals("forward-backward")) ?
TaggingAlgorithm.FORWARDBACKWARD : TaggingAlgorithm.FORWARD;