anhaidgroup / py_entitymatching

BSD 3-Clause "New" or "Revised" License
183 stars 48 forks source link

Fixed abs_norm sim measure for negative numbers #126

Closed pjmartinkus closed 5 years ago

pjmartinkus commented 5 years ago

Fixed bug involving using the absolute norm measure for negative values. Previously, if either input was negative and the other was zero, it would cause a divide by zero error. Now, the absolute values are used to prevent this situation as well as keeping the similarity score between 0 and 1.