Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'recordlinkage' has no attribute 'SortedNeighbourhoodIndex' #176

Open
naeemahaz opened this issue Jun 21, 2022 · 1 comment

Comments

@naeemahaz
Copy link

import recordlinkage
indexer = recordlinkage.Index()
indexer = recordlinkage.SortedNeighbourhoodIndex(on='label', window=9)
candidate_links = indexer.index(featuresfinal, targetfinal)
comp = recordlinkage.Compare()
comp.string('label', 'label', method='jarowinkler', label='labels')
mymatches = comp.compute(candidate_links, featuresfinal, targetfinal)

@naeemahaz
Copy link
Author

FIXED:
from recordlinkage.index import SortedNeighbourhood
Neighbour_Index_by_Name = SortedNeighbourhood(on="surname", window = 5)
Neighbour_Index_by_Name_Pairs = Neighbour_Index_by_Name.index(df)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant