J535D165 / recordlinkage

A powerful and modular toolkit for record linkage and duplicate detection in Python
http://recordlinkage.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
963 stars 153 forks source link

Issues with the geographic classification method #136

Open JosephKuchar opened 4 years ago

JosephKuchar commented 4 years ago

Hi,

I'm just wondering if there is an example of using the current version of this package with the geographic method? If I try to add Haversine distance to my compare object, something like

compare = rl.Compare()
compare.string('Address', 'Address', method='damerau_levenshtein',  label='Addr_DL')
compare.geographic('Latitude','Longitude','Latitude','Longitude',label='Distance')

Then the geographic method doesn't work ("'Compare' object has no attribute 'geographic'")- is there a working example somewhere I can take a look at?

benbusath commented 4 years ago

try using 'compare.geo' instead of geographic