@@ -0,0 +1,989 @@
+package parser;%0A%0Aimport java.util.HashSet;%0Aimport java.util.LinkedList;%0Aimport java.util.List;%0Aimport java.util.Set;%0Aimport kr.co.shineware.nlp.komoran.core.analyzer.Komoran;%0Aimport kr.co.shineware.util.common.model.Pair;%0A%0Apublic class KoreanParser %7B %0A%09public Komoran Analyzer; %0A%09%0A%09public KoreanParser() %7B%0A%09%09Analyzer = new Komoran(%22/home/jinhoim/java/komoran-2.1.2-e/models/%22);%0A%09%7D%0A%09%0A%09public List%3CString%3E extractDistinctWords(String doc) %7B%0A%09%09List%3CString%3E nouns = new LinkedList%3CString%3E();%0A%09%09Set%3CString%3E repetitionChecker = new HashSet%3CString%3E();%0A%09%09%0A%09%09List%3CList%3CPair%3CString, String%3E%3E%3E result = Analyzer.analyze(doc);%09%09%0A%09%09%0A%09%09for (List%3CPair%3CString, String%3E%3E eojeolResult : result) %7B%0A%09%09%09for (Pair%3CString, String%3E wordMorph : eojeolResult) %7B%0A%09%09%09%09%0A%09%09%09%09String word = wordMorph.getFirst();%0A%09%09%09%09String type = wordMorph.getSecond();%0A%09%09%09%09%0A%09%09%09%09if (type.equals(%22NNG%22) && !repetitionChecker.contains(word)) %7B%0A%09%09%09%09%09repetitionChecker.add(word);%0A%09%09%09%09%09nouns.add(word);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return nouns;%0A%09%7D%0A%7D%0A

Create KoreanParser.java