Beispiel #1
0
 @Test
 public void testFindWithPosTag_명사() throws Exception {
   String word = "가계약";
   WordEntry entry = Dictionary.searchNoun(word);
   assertEquals(word, entry.getString());
   assertTrue(entry.isTagOf(PosTag.N));
 }
Beispiel #2
0
 @Test
 public void testLoadDictionaryAndPrintTrie() throws Exception {
   WordEntry word = Dictionary.searchNoun("괴물");
   assertEquals("괴물", word.getString());
   Dictionary.printFixedWordDictionary(new PrintWriter(new FileWriter("d:/temp/ka.txt")));
   Dictionary.printVerbDictionary(new PrintWriter(new FileWriter("d:/temp/ka_verb.txt")));
 }