public List<Sentence> analysisSentence(String str) { // string to analyze System.out.println("# [analysisSentence()] 문장 추출중"); List<Sentence> stl = null; try { Timer timer = new Timer(); timer.start(); List<MExpression> ret = ma.analyze(str); timer.stop(); timer.printMsg("Time"); ret = ma.postProcess(ret); ret = ma.leaveJustBest(ret); stl = ma.divideToSentences(ret); System.out.println("# [analysisSentence()] 문장 추출 끝"); } catch (Exception e) { return null; } return stl; }
public Analysis() { ma = new MorphemeAnalyzer(); ma.createLogger(null); }
public void close() { ma.closeLogger(); }