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 "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/var/lib/django/l10n/weblate/trans/views.py", line 848, in get_similar
similar = Unit.objects.similar(unit)
File "/var/lib/django/l10n/weblate/trans/managers.py", line 252, in similar
terms = [kw for kw, score in searcher.key_terms_from_text('source', unit.source, numterms = 10) if not kw in IGNORE_SIMILAR]
File "/usr/lib/python2.7/dist-packages/whoosh/searching.py", line 471, in key_terms_from_text
return expander.expanded_terms(numterms, normalize=normalize)
File "/usr/lib/python2.7/dist-packages/whoosh/classify.py", line 177, in expanded_terms
norm = model.normalizer(maxweight, self.top_total)
File "/usr/lib/python2.7/dist-packages/whoosh/classify.py", line 58, in normalizer
return (maxweight * log((1.0 + f) / f) + log(1.0 + f)) / log(2.0)
ZeroDivisionError: float division by zero
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/var/lib/django/l10n/weblate/trans/views.py", line 848, in get_similar
similar = Unit.objects.similar(unit)
File "/var/lib/django/l10n/weblate/trans/managers.py", line 252, in similar
terms = [kw for kw, score in searcher.key_terms_from_text('source', unit.source, numterms = 10) if not kw in IGNORE_SIMILAR]
File "/usr/lib/python2.7/dist-packages/whoosh/searching.py", line 471, in key_terms_from_text
return expander.expanded_terms(numterms, normalize=normalize)
File "/usr/lib/python2.7/dist-packages/whoosh/classify.py", line 177, in expanded_terms
norm = model.normalizer(maxweight, self.top_total)
File "/usr/lib/python2.7/dist-packages/whoosh/classify.py", line 58, in normalizer
return (maxweight * log((1.0 + f) / f) + log(1.0 + f)) / log(2.0)
ZeroDivisionError: float division by zero
The text was updated successfully, but these errors were encountered: