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

Some cases couldn't be found in the default db #35

Open
Loose-Gu opened this issue Dec 12, 2023 · 2 comments
Open

Some cases couldn't be found in the default db #35

Loose-Gu opened this issue Dec 12, 2023 · 2 comments

Comments

@Loose-Gu
Copy link

assert results is not None and len(results)==1, f"topic in your data ({title}) is likely to be not a valid title in the DB."

It seems that Francisco Urroz (unlabeled) will cause the error. I use the default file enwiki-20230401.db and manually query the db about this topic. But it returns nothing.

@skychwang
Copy link

Had the same problem; seems like spaces in topic titles cause the error. Not entirely sure of a better fix—my workaround was just to make a custom db with spaces in titles removed.

@Loose-Gu
Copy link
Author

@skychwang I solved it by adding a wildcard (*) to the query statement, which maybe more convenient.

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