Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Feb 17, 2019

This solves an issue #1
The ZeroDivisionError was produced by creating a profile on a string shorter than the ngram size. The problem was caused by removing empty spaces after comparing string lengths with the ngram size (L44 in cosine.py).

@luozhouyang luozhouyang merged commit c634045 into luozhouyang:master Feb 20, 2019
@luozhouyang
Copy link
Owner

hi @pmalgorzata , I think we should keep spaces when calculating string similarity( or distance). Removing spaces makes no sense.

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

Successfully merging this pull request may close these issues.

1 participant