Komoran implements Cloneable { public double scoreDebug(List<String> analyzeResultList, List<String> analyzePosList){ String prevPos = SYMBOL.BOE; double score = 0.0; for(int i=0;i<analyzePosList.size();i++){ String currentMorph = analyzeResultList.get(i); String currentPos = analyzePosList.get(i); FindContext<List<ScoredTag>> findContext = this.resources.getObservation().getTrieDictionary().newFindContext(); String jasoUnits = unitParser.parse(currentMorph); ScoredTag scoredTag = getScoredTag(jasoUnits, findContext, currentPos); score += getScore(currentMorph, scoredTag, prevPos, currentPos); prevPos = currentPos; } return score; } Komoran(String modelPath);  Komoran(DEFAULT_MODEL modelType); void analyzeTextFile(String inputFilename, String outputFilename, int thread); List<KomoranResult> analyze(List<String> sentences, int thread); KomoranResult analyze(String sentence); double scoreDebug(List<String> analyzeResultList, List<String> analyzePosList); List<KomoranResult> analyze(String sentence, int nbest); void setFWDic(String filename); void setUserDic(String userDic);  }
@Test public void debugScore() { List<String> analyzeMorphList = Arrays.asList("거리", "에", "는"); List<String> analyzePosList = Arrays.asList("NNG", "JKB", "JX"); System.out.println(this.komoran.scoreDebug(analyzeMorphList, analyzePosList)); analyzeMorphList = Arrays.asList("거", "리", "에", "는"); analyzePosList = Arrays.asList("NNB", "XSN", "JKB", "JX"); System.out.println(this.komoran.scoreDebug(analyzeMorphList, analyzePosList)); }