public static void main(String[] args) throws Exception {
		// 指定训练语料和模型存储的位置
		String template = "./tmpdata/template.sighan2005";
		String corpus = "./tmpdata/as_training.utf8";
		String model = "./tmpdata/cws.m";
		
		// 如果在训练过程中没有测试文件请保持testfile为""
		String testfile = "";
		
		if(testfile != ""){
			Tagger.main(new String[]{"-train",template,corpus,model,testfile});
		}else{
			Tagger.main(new String[]{"-train",template,corpus,model});
		}
		

	}
public static void main ( String [ ] args ) throws Exception { String template = "./tmpdata/template.sighan2005" ; String corpus = "./tmpdata/as_training.utf8" ; String model = "./tmpdata/cws.m" ; String testfile = "" ; if ( testfile != "" ) { Tagger . main ( new String [ ] { "-train" , template , corpus , model , testfile } ) ; } else { Tagger . main ( new String [ ] { "-train" , template , corpus , model } ) ; } }
@param args
@throws Exception