dedupeio / dedupe-variable-name

name variable type for dedupe
8 stars 8 forks source link

fix: person and company predicates #8

Open ClemDoum opened 6 months ago

ClemDoum commented 6 months ago

Bug description

While training a Gazetteer on data with a person field and no other name field, I noticed that predicates like PartialIndexLevenshteinSearchPredicate: (3, best_looking_name, CorporationName) were wrongly generated as well as the expected PartialIndexLevenshteinSearchPredicate: (3, best_looking_name, Surname).

This happens because block_parts were not properly set when initialization of the WesternNameType depending on the WesternNameType.name_type

Changes

Fixed