boolean useWordDictionary = (wDictS != null);
boolean usePOSDictionary = (pDictS != null);
POSTagger pTagger = (posConfigS == null) ? null : POSTagger.posTaggerFactory(posConfigS);
TaggingAlgorithm alg = (opts.get("taggingalgorithm") == null || opts.get("taggingalgorithm").equals("forward-backward")) ?
TaggingAlgorithm.FORWARDBACKWARD : TaggingAlgorithm.FORWARD;
MaxentModel mem = new ZLMEM(new File(maxentModS));
//STTaggerWordDictionary wd,STTaggerPOSDictionary pd, int K, MaxentModel mo, FeatureExtractor fexer,
//String tagSequenceModel, Constants.TaggingAlgorithm alg, POSTagger posTagger
res = (pTagger != null) ?
new WordAndPOSDictionaryLabellingStrategy(wD, pD, kay, mem, fex, seqModS, alg, pTagger) :
new WordAndPOSDictionaryLabellingStrategy(wD, pD, kay, mem, fex, seqModS, alg);