Package org.snu.ids.ha.ma

Examples of org.snu.ids.ha.ma.Sentence


        KkmaInterface ki = new KkmaInterface();

        // Test morphAnalyzer
        List<Sentence> sentenceList = ki.morphAnalyzer(phrase);
        for (int i = 0; i < sentenceList.size(); i++) {
            Sentence st = sentenceList.get(i);
            System.out.println("* " + st.getSentence());
            for (int j = 0; j < st.size(); j++) {
                System.out.println((st.get(j)));
            }
        }

        // Test extractNoun
        KeywordList kl = ki.extractNoun(phrase);
View Full Code Here


      ret = ma.leaveJustBest(ret);

      List<Sentence> stl = ma.divideToSentences(ret);
      for( int i = 0; i < stl.size(); i++ ) {
        Sentence st = stl.get(i);
        System.out.println("=============================================  " + st.getSentence());
        for( int j = 0; j < st.size(); j++ ) {
          System.out.println(st.get(j));
        }
      }

      ma.closeLogger();
    } catch (Exception e) {
View Full Code Here

            timer.stop();
            printlog("총 분석 시간: " + timer.getInterval());

            List<Sentence> stl = ke.divideToSentences(ret);
            for( int i = 0; i < stl.size(); i++ ) {
              Sentence st = stl.get(i);
              sb.append(st.getSentence() + "\n");
              for( int j = 0; j < st.size(); j++ ) {
                sb.append("\t" + st.get(j) + "\n");
              }
              sb.append("\n");
            }

            resultText.setText(sb.toString());
View Full Code Here

TOP

Related Classes of org.snu.ids.ha.ma.Sentence

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.