luozhouyang / python-string-similarity

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

Removed redundant intersection loop #15

Closed gokhanercan closed 4 years ago

gokhanercan commented 4 years ago

Since we already have the set union, calculating the intersection length is possible without looping like this: |A|+|B|-U(A,B). As already implemented in the Jaccard measure.