package org.ansj.test;

import java.io.BufferedReader;
import java.io.IOException;

import org.ansj.util.MyStaticValue;
import org.junit.Test;
import org.nlpcn.commons.lang.util.IOUtil;

public class SplitWordTest {
	
	@Test
	public void cohesionTest() throws IOException{
		BufferedReader reader = IOUtil.getReader(MyStaticValue.userLibrary, IOUtil.UTF8) ;
		
		String temp = null ;
		
		long start = System.currentTimeMillis() ;
		while((temp=reader.readLine())!=null){
			String word = temp.split("\t")[0] ;
			double value = MyStaticValue.getCRFSplitWord().cohesion(word) ;
			System.out.println(word+"\t"+value);
		}
		System.out.println(System.currentTimeMillis()-start);
	}
}

@@ -575,48 +575,8 @@
 ) ;%0A
-%09%09%09System.out.println(word+%22%5Ct%22+value);%0A
 %09%09%7D%0A

take splitwordtest not print