package org.ictclas4j.run;
import javax.swing.JFrame;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.ictclas4j.bean.SegResult;
import org.ictclas4j.segment.Segment;
/**
* Copyright 2007.6.1 ���²���sinboy��
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*
*/
public class SegMain {
public static Segment seg;
static Logger logger = Logger.getLogger(SegMain.class);
public SegMain() {
PropertyConfigurator.configure(Config.LOG4J_CONF);
}
public static void main(String[] args) {
SegMain sm = new SegMain();
seg = new Segment(1);
sm.initFrm();
// String[] source = {
// "2006��¹����籭�˷�֮һ��������Ҫ��ʼ",
// "���ݣ����羯�조Ѳ�ߡ�BBS�Ͳ���",
// "18ʱ42�ֵ�������Ҫ��ʼ��",
// "���²�ס������Է",
// "���²��ں���",
// "���۲��ܶ�",
// "�й�����Ӵ�վ������",
// "���ǣӣȣͣ��������͵��ӻ���˹�ҵ��ƴ�"};
// for (int i = 0; i < source.length; i++) {
// SegResult sr = seg.split(source[i]);
// System.out.println("time:" + sr.getSpendTime() + " " + sr.getFinalResult());
// }
}
private void initFrm() {
FrmMain frm = FrmMain.getInstance();
JFrame jf = frm.getJFrame();
jf.setSize(800, 600);
jf.setVisible(true);
}
}