Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroDivisionError during evaluation #7

Open
shantipriyap opened this issue Apr 29, 2019 · 0 comments
Open

ZeroDivisionError during evaluation #7

shantipriyap opened this issue Apr 29, 2019 · 0 comments

Comments

@shantipriyap
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant