private static void forTrain(String path, String fileName,
			Classifier<String, String> bayes) {
		File file = new File(path + fileName);
		BufferedReader reader = null;
		try {
			reader = new BufferedReader(new FileReader(file));
			String temp = null;
			String type = null;
			// 一次读入一行，直到读入null为文件结束
			while ((temp = reader.readLine()) != null) {
				type = temp.split("\t")[0];
				if ("ca".equals(type)) {
					bayes.setTotalCategoryCount(stringToDic(temp.split("\t")[1]));
				} else if ("fe".equals(type)) {
					bayes.setTotalFeatureCount(stringToDic(temp.split("\t")[1]));
				} else if ("per".equals(type)) {
					bayes.setGeatureCountPerCategory(stringToDicDic(temp.split("\t")[1]));
				}
			}
			reader.close();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (reader != null) {
				try {
					reader.close();
				} catch (IOException e1) {
				}
			}
		}
	}