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

can't import keybert #216

Closed
holidaycuki opened this issue Mar 15, 2024 · 9 comments
Closed

can't import keybert #216

holidaycuki opened this issue Mar 15, 2024 · 9 comments

Comments

@holidaycuki
Copy link

When I import keybert, it reports this issue:
ImportError: cannot import name 'is_nltk_available' from 'transformers.utils.import_utils' (/Users/wangting/miniconda3/envs/langchain/lib/python3.10/site-packages/transformers/utils/import_utils.py)
How can I solve this problem?

@MaartenGr
Copy link
Owner

Could you share the complete error message? Also, which version of KeyBERT are you using?

@holidaycuki
Copy link
Author

截屏2024-03-15 19 58 44

The version of KeyBERT is 0.6.0

@MaartenGr
Copy link
Owner

Could you share the complete message? It seems to be missing the beginning and it is also truncated at the right.

@holidaycuki
Copy link
Author

截屏2024-03-15 20 29 18 截屏2024-03-15 20 29 37

It is too long. I have cut out the beginging and the right side

@MaartenGr
Copy link
Owner

You can also copy-paste the error message here and format them as code blocks. It is really hard for me to read the error message this way as I am not sure where it starts and end.

@holidaycuki
Copy link
Author

I think it will a littlt difficult. I have run it sucessfully in google colab.

@MaartenGr
Copy link
Owner

Does that mean you do not have the issue anymore? If not, please copy-paste the error message. Since the error message is text, you can select it, and copy-paste it here.

@holidaycuki
Copy link
Author

No, I still have this issue, I think it is the environment issue. Now I can run sucessfully in google colab, so I want to give up solve this issue. Thank you!

@MaartenGr
Copy link
Owner

No problem, glad I could help.

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