Package org.ictclas4j.bean

Examples of org.ictclas4j.bean.DictLib


      jbSplitOK = new JButton();
      jbSplitOK.setText("�ִ�");
      jbSplitOK.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          int segPathCount = Integer.parseInt(jtSegPathCount.getText());
          DictLib dictLib=SegMain.dictLib;
          Segment seg=new Segment(dictLib,segPathCount);
          seg.setOutputMidResult(true);
          seg.setRecogniseUnknown(true);
          SegResult sr = seg.split(jtSrcMsg.getText());
          jtSplitMsg.setText( sr.toString());
View Full Code Here


      jbTest.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          try {
            long bytes = 0;
            int segPathCount = Integer.parseInt(jtSegPathCount.getText());
            DictLib dictLib=SegMain.dictLib;
            Segment seg=new Segment(dictLib,segPathCount);
            int forCount = Integer.parseInt(jtFor.getText());
            ArrayList<String> testCases = GFFile.readTxtFile2("test"+GFFinal.FILE_SEP+"case1.txt");
           
            long times=System.currentTimeMillis();
View Full Code Here

  static Logger logger = Logger.getLogger(SegMain.class);

  public static void main(String[] args) {
    PropertyConfigurator.configure(Config.LOG4J_CONF);
    dictLib = new DictLib();
    Config conf = new Config();
    if (conf.isShowFrm())
      initFrm();

    ServerAdapter server = new ServerAdapter(dictLib);
View Full Code Here

    PropertyConfigurator.configure(Config.LOG4J_CONF);
    try {
      long bytes = 0;
      int segPathCount = 1;
      int forCount = 1;
      DictLib dictLib = new DictLib();
      Segment seg = new Segment(dictLib, segPathCount);
      ArrayList<String> testCases = GFFile.readTxtFile2("test" + GFFinal.FILE_SEP + "case1.txt");

      long times = System.currentTimeMillis();
      for (int i = 0; i < forCount; i++) {
View Full Code Here

TOP

Related Classes of org.ictclas4j.bean.DictLib

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.