You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/lnet/spec/work/people/kasner/neuralmonkey-ctc-decoder/neuralmonkey/bin/neuralmonkey/evaluators/chrf.py", line 89, in chr_p
return precision / float(self.max_ord)
ZeroDivisionError: float division by zero
The text was updated successfully, but these errors were encountered:
In case
len(tokens) == 0
(i.e. the input sentence is empty) ChrF crashes withZeroDivisionError
on line 89:https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/evaluators/chrf.py#L89
The text was updated successfully, but these errors were encountered: