This solves an issue https://github.com/luozhouyang/python-string-similarity/issues/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).
This solves an issue https://github.com/luozhouyang/python-string-similarity/issues/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).