private static void forTrain(String path, String fileName,
			Classifier<String, String> bayes) {
		File file = new File(path + fileName);
		BufferedReader reader = null;
		String[] words = null;
		String type = null;
		try {
			reader = new BufferedReader(new FileReader(file));
			String temp = null;
			int count = 0;
			// 一次读入一行，直到读入null为文件结束
			while ((temp = reader.readLine()) != null) {
				words = temp.split("\t")[0].split(" ");
				type = temp.split("\t")[1];
				bayes.learn(type, Arrays.asList(words));
				count++;
				if (count % 500 == 0) {
					System.out.println("now dealed " + count + " lines ");
				}
//				if (count == 20000) {
//					break;
//				}
			}
			reader.close();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (reader != null) {
				try {
					reader.close();
				} catch (IOException e1) {
				}
			}
		}
	}