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

TypeError: 'set' object does not support indexing #12

Open
KecenGuo opened this issue Aug 4, 2021 · 1 comment
Open

TypeError: 'set' object does not support indexing #12

KecenGuo opened this issue Aug 4, 2021 · 1 comment

Comments

@KecenGuo
Copy link

KecenGuo commented Aug 4, 2021

the code:
ret = process.extract(topic_ent.replace('_', ' '), set(list(zip(*ent_types))[0]), scorer=fuzz.token_sort_ratio)

how to solve it please?

@hugochan
Copy link
Owner

process.extract(topic_ent.replace('_', ' '), set(list(zip(*ent_types))[0]), scorer=fuzz.token_sort_ratio)

@KecenGuo thank you for your interest to our work! Can you give more context on this issue? I was not able to see any problem with the code you pasted? Also, please put a link to the corresponding code snippet for easy debugging.

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