Package org.snu.ids.ha.index

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


        }

        // 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


    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

      PrintWriter pw = null;
      try {
        pw = new PrintWriter(file);
       
        for( int i = 0, size = keywordList == null ? 0 : keywordList.size(); i < size; i++ ) {
          Keyword keyword = keywordList.get(i);
          pw.println(keyword.getIndex() + "\t" + keyword.getString() + "\t" + keyword.getTag() + "\t" + keyword.getCnt());
        }
        pw.flush();
        pw.close();
      } catch (Exception e) {
        printlog("ERROR: " + e.toString());
View Full Code Here

       */
      @Override
      public Object getValueAt(int row, int col)
      {
        if( keywordList == null || row >= keywordList.size() ) return null;
        Keyword keyword = keywordList.get(row);
        switch (col) {
          case 0:
            return (int) keyword.getIndex();
          case 1:
            return keyword.getString();
          case 2:
            return keyword.getTag();
          case 3:
            return keyword.getCnt();

        }
        return null;
      }
View Full Code Here

TOP

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

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.