py-rouge icon indicating copy to clipboard operation
py-rouge copied to clipboard

ZeroDivisionError during evaluation

Open shantipriyap opened this issue 5 years ago • 0 comments

The py-rouge failing during evaluation with best. The system generated file has 20K and reference file has 20k german lines.

Trace:

Evaluation with Best Traceback (most recent call last): File "testrouge.py", line 42, in scores = evaluator.get_scores(ref_data, sum_data) File "XXXXX/lib/python3.6/site-packages/rouge/rouge.py", line 485, in get_scores scores = {**scores, **self._get_scores_rouge_l_or_w(hypothesis, references, True)} File "XXXXX/pythonenv3.6/lib/python3.6/site-packages/rouge/rouge.py", line 628, in _get_scores_rouge_l_or_w score_wlcs = (overlapping_ngrams_for_score / reference_count_for_score) ** (1.0 / self.weight_factor) ZeroDivisionError: float division by zero

shantipriyap avatar Apr 29 '19 13:04 shantipriyap