-
Notifications
You must be signed in to change notification settings - Fork 756
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
representation_model: 'NoneType' object is not iterable #1755
Comments
In all honesty, not sure what is happening here. I believe there is another issue open with the same problem but it might just be related to the underlying T5 model. Also, have you tried passing the documents as a list of strings instead of a pandas series? |
I'm facing the same issue, but only with the I have the same code running successfully on v0.15.0 Edit: I did some digging, and found the problem is in this line. It seems that whenever using the default prompt, the top representative documents will be A simple fix for it would be to have the else condition in line 141 assigning an empty list as the default value. I opened a PR with this change |
Thanks for the PR. I just merged #1726 which should fix the issue. Could one of you test it out so I know it also works for others? |
Thanks for the update! I tested it, and it runs without any errors on my end. |
Hey there!
First of all: thank you for developing BERTopic, it's neat! However, I am encountering an issue with
representation_model
, when trying to rename my cluster representations. Everything works fine as long as I am using just an embedding_model. However, as soon as I start using a representation_model I get the same error consistently.Here is some sample code, inspired by this documentation.
The error I get is:
Running it on an M1 Mac, if that helps. Any help appreciated. Also tried copying all code from the best practise and got the same error.
Best regards!
Alex Mühlhausen
The text was updated successfully, but these errors were encountered: