luozhouyang / python-string-similarity

A library implementing different string similarity and distance measures using Python.
MIT License
991 stars 127 forks source link

use specified costs when one of the strings is empty #20

Closed lanzkron closed 4 years ago

lanzkron commented 4 years ago

If one of the strings is empty it's not correct to assume that the cost is the length of the other string since we the insertion and deletion costs are configurable and not necessarily 1.