intuit / fuzzy-matcher

A Java library to determine probability of objects being similar.
Apache License 2.0
228 stars 69 forks source link

Fix/escape matches #2

Closed manishobhatia closed 5 years ago

manishobhatia commented 5 years ago

Fixes issue with scoring of Document Matches, where document with unbalanced elements did not match correctly

Eg. Document D1 has Name,Address and Email Document D2 has Name,Phone and Email

The Average scoring did not associate correct defaults for elements that do not participate in match In this case Address and Phone should each default to 0.5 score (0.5 2) Instead of (0.5 1)