code: public static EvaluationResult evaluation(String resultText, String standardText) {
          int perfectLineCount=0;
          int wrongLineCount=0;
          int perfectCharCount=0;
          int wrongCharCount=0;
          try(BufferedReader resultReader = new BufferedReader(new InputStreamReader(new FileInputStream(resultText),"utf-8"));
              BufferedReader standardReader = new BufferedReader(new InputStreamReader(new FileInputStream(standardText),"utf-8"))){
              String result;
              while( (result = resultReader.readLine()) != null ){
                  result = result.trim();
                  String standard = standardReader.readLine().trim();
                  if(result.equals("")){
                      continue;
                  }
                  if(result.equals(standard)){
                      //分词结果和标准一模一样
                      perfectLineCount++;
                      perfectCharCount+=standard.replaceAll("\\s+", "").length();
                  }else{
                      //分词结果和标准不一样
                      wrongLineCount++;
                      wrongCharCount+=standard.replaceAll("\\s+", "").length();
                  }
              }
          } catch (IOException ex) {
              LOGGER.error("分词效果评估失败：", ex);
          }
          int totalLineCount = perfectLineCount+wrongLineCount;
          int totalCharCount = perfectCharCount+wrongCharCount;
          EvaluationResult er = new EvaluationResult();
          er.setPerfectCharCount(perfectCharCount);
          er.setPerfectLineCount(perfectLineCount);
          er.setTotalCharCount(totalCharCount);
          er.setTotalLineCount(totalLineCount);
          er.setWrongCharCount(wrongCharCount);
          er.setWrongLineCount(wrongLineCount);     
          return er;
      }
docs: 分词效果评估
  @param resultText 实际分词结果文件路径
  @param standardText 标准分词结果文件路径
  @return 评估结果