String hmmTaggerAnalyzerConf = "conf/plugin/MajorPlugin/PosTagger/HmmPosTagger.json";
File wf = new File(WorkflowFactory.class.getProtectionDomain().getCodeSource().getLocation().getPath());
String wfpath = wf.getParentFile().getPath();
Workflow workflow = new Workflow(wfpath);
workflow.appendPlainTextProcessor(new SentenceSegmentor(), null);
workflow.appendPlainTextProcessor(new InformalSentenceFilter(), null);
workflow.setMorphAnalyzer(new ChartMorphAnalyzer(), chartMorphAnalyzerConf);
// TODO: Add workflow.setMorphUserDic(userDicFile);
workflow.appendMorphemeProcessor(new UnknownProcessor(), null);