Examples of KeywordExtractor


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

    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

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

  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

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

  void createKE()
  {
    startJob("사전 읽기");
    Timer timer = new Timer();
    timer.start();
    ke = new KeywordExtractor();
    timer.stop();
    endJob(timer.getInterval());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.