private void diffFile(File stdout, File result) throws IOException		//比较文件
	{
		FileReader fStdoutReader = new FileReader(stdout);
		BufferedReader bStdoutReader = new BufferedReader(fStdoutReader);
		
		FileReader fResultReader = new FileReader(result);
		BufferedReader bResultReader = new BufferedReader(fResultReader);
		
		String szResultFile, szStdoutFile, szLine;
		
		szStdoutFile = "";
		while ((szLine = bStdoutReader.readLine()) != null) szStdoutFile += szLine + "\n";
		
		szResultFile = "";
		while ((szLine = bResultReader.readLine()) != null) szResultFile += szLine + "\n";
		
		String[] arrStdoutSentence = szStdoutFile.split("\n\n");
		String[] arrResultSentence = szResultFile.split("\n\n");			//取出各个句子
		
		for (int i = 0; i < arrStdoutSentence.length; ++i)					//比较各句子
		{
			String[] arrStdoutToken = arrStdoutSentence[i].split("\n");
			String[] arrResultToken = arrResultSentence[i].split("\n");
			
			++lTotalSentence;
			
			if (arrStdoutToken.length != arrResultToken.length)				//分词数不对
			{
				lTotalWord += arrStdoutToken.length;						//只更新总词数，所有词判错
				continue;
			}
			
			boolean bCorrect = true;
			for (int j = 0; j < arrStdoutToken.length; ++j)
			{
				String[] arrStdoutTemp = arrStdoutToken[j].split("\t");
				String[] arrResultTemp = arrResultToken[j].split("\t");
				
				++lTotalWord;
				
				if (arrResultTemp.length != 3)								//不能正确拆分为3段
				{
					bCorrect = false;
					continue;
				}
				
				if (Integer.parseInt(arrStdoutTemp[2]) != Integer.parseInt(arrResultTemp[2]))
				{															//父结点号不对
					bCorrect = false;
					continue;
				}
				
				++lCorrectWord;												//单词正确
			}
			
			if (bCorrect) ++lCorrectSentence;								//整句完全正确
		}
				
		bStdoutReader.close();
		fResultReader.close();
	}