Package org.snu.ids.ha.index

Examples of org.snu.ids.ha.index.KeywordList


    public KeywordList extractNoun(String phrase) {
        if (phrase == null || phrase == "" || phrase.length()==0) {return null; }
        System.setOut(new PrintStream(new OutputStream() { public void write(int b) {}}){});

        KeywordExtractor ke = new KeywordExtractor();
        KeywordList kl = ke.extractKeyword(phrase, true);
        return kl;
    }
View Full Code Here


                System.out.println((st.get(j)));
            }
        }

        // Test extractNoun
        KeywordList kl = ki.extractNoun(phrase);
        for (int i = 0; i < kl.size(); i++) {
            Keyword kwrd = kl.get(i);
            System.out.println(kwrd.getString() + "\t" + kwrd.getCnt());
        }
    }
View Full Code Here

  public static void keTest()
  {
    String strToExtrtKwrd = "저는 대학생이구요. 소프트웨어 관련학과 입니다. DB는 수업을 한번 들은 적이 있으며, 수학은 대학에서 통계학, 선형대수학, 이산수학, 대학수학 등을 배웠지만... 자주 사용을 안하다보니 모두 까먹은 상태입니다.";

    KeywordExtractor ke = new KeywordExtractor();
    KeywordList kl = ke.extractKeyword(strToExtrtKwrd, true);
    for( int i = 0; i < kl.size(); i++ ) {
      Keyword kwrd = kl.get(i);
      System.out.println(kwrd.getString() + "\t" + kwrd.getCnt());
    }
  }
View Full Code Here

TOP

Related Classes of org.snu.ids.ha.index.KeywordList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.