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

Error when reproducing Gazetteer Example #1090

Open
hlra opened this issue Sep 4, 2022 · 1 comment
Open

Error when reproducing Gazetteer Example #1090

hlra opened this issue Sep 4, 2022 · 1 comment

Comments

@hlra
Copy link

hlra commented Sep 4, 2022

I am trying to reproduce the Gazetteer Example. This line:
results = gazetteer.search(messy, n_matches=1)

Throws the following error:

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\dst\lib\code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\envs\dst\lib\site-packages\dedupe\api.py", line 930, in search
    return list(results)
  File "C:\ProgramData\Anaconda3\envs\dst\lib\site-packages\dedupe\api.py", line 936, in _format_search_results
    for result in results:
  File "C:\ProgramData\Anaconda3\envs\dst\lib\site-packages\dedupe\api.py", line 867, in many_to_n
    yield from clustering.gazetteMatching(score_blocks, threshold, n_matches)
  File "C:\ProgramData\Anaconda3\envs\dst\lib\site-packages\dedupe\clustering.py", line 313, in gazetteMatching
    for block in scored_blocks:
  File "C:\ProgramData\Anaconda3\envs\dst\lib\site-packages\dedupe\core.py", line 233, in scoreGazette
    first, record_pairs = peek(record_pairs)
  File "C:\ProgramData\Anaconda3\envs\dst\lib\site-packages\dedupe\core.py", line 279, in peek
    first = next(seq)
  File "C:\ProgramData\Anaconda3\envs\dst\lib\site-packages\dedupe\api.py", line 793, in blocks
    pairs = con.execute(
sqlite3.OperationalError: no such table: indexed_records

I tried to look into the code to figure out what's going on but I'm afraid I do not understand. I am using dedupe 2.0.17.

@fgregg
Copy link
Contributor

fgregg commented Sep 21, 2022

did you call the index method before calling search?

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

2 participants