⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.java

📁 一个简单的中文分词器,java语言描述
💻 JAVA
字号:
/*
 * Main.java
 *
 * Created on 2007年1月17日, 下午10:27
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package doctokenizer;

import java.io.IOException;
import java.io.*;
import util.word.*;

/**
 *
 * @author JinfengLee
 */
public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
       String token ;
        File file = new File("D:\\IRlab2006\\CWT200g060412-27897055.txt");
        DocTokenizer doctokenizer = new DocTokenizer("D:\\dictionary.txt");
        doctokenizer.setFile(file);
        while((token = doctokenizer.nextToken())!=null)
            System.out.println(token);
    }
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -