* @param args
* @throws IOException
* @throws
*/
public static void main(String[] args) throws Exception {
CWSTagger tag = new CWSTagger("./models/seg.m");
RLSeg rlseg = new RLSeg(tag,"./tmpdata/FNLPDATA/all.dict");
tag.setDictionary(tempdict);
System.out.println("\n处理文件:");
String s4 = tag.tagFile("../example-data/data-tag.txt");
System.out.println(s4);
String[] toks = s4.split("\\s+");
int newset = rlseg.update(toks);
rlseg.close();
tag.setDictionary(tempdict);
System.out.println("\n处理文件:");
String s = tag.tagFile("../example-data/data-tag.txt");
System.out.println(s);
}