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
analogy has a return type of Option<_> and takes care to return None if it's passed two empty vectors. However, it doesn't bother to check whether vectors.is_empty() and instead ends up returning the top entries from its corpus with scores of NaN as a result.
Fixing this should be as simple as changing this line to if exclude.is_empty() || vectors.is_empty() {.
The text was updated successfully, but these errors were encountered:
analogy
has a return type ofOption<_>
and takes care to returnNone
if it's passed two empty vectors. However, it doesn't bother to check whethervectors.is_empty()
and instead ends up returning the top entries from its corpus with scores ofNaN
as a result.Fixing this should be as simple as changing this line to
if exclude.is_empty() || vectors.is_empty() {
.The text was updated successfully, but these errors were encountered: