Skip to content

Commit

Permalink
fix the algo and eval
Browse files Browse the repository at this point in the history
Change-Id: If163c03c1acccf4c6303815f6fdad4589a71385f
  • Loading branch information
wangyizhong01 committed Nov 10, 2017
1 parent 3252b9f commit 58aafa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/rc_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def evaluate(self, eval_batches, result_dir=None, result_prefix=None, save_full_
if len(ref_answers) > 0:
pred_dict = {pred['query_id']: pred['answers'] for pred in pred_answers}
ref_dict = {ref['query_id']: ref['answers'] for ref in ref_answers}
bleu_rouge = compute_bleu_rouge(pred_answers, ref_answers)
bleu_rouge = compute_bleu_rouge(pred_dict, ref_dict)
else:
bleu_rouge = None
return ave_loss, bleu_rouge
Expand Down

0 comments on commit 58aafa9

Please sign in to comment.