You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from bertopic import BERTopic
model_path = "/path/to/bertopic/model"
model = BERTopic.load(model_path)
The error: AttributeError: 'NNDescent' object has no attribute '_bit_trees'
The solution:
I downgraded my pynndescent from 0.5.12 to 0.5.11. That solved the problem, but just bringing this to your attention in case there's a change that needs to be made moving forward.
The text was updated successfully, but these errors were encountered:
I'm having the same issue now, and neither downgrading the pynndescent nor installing umap-learn helped. Beforehand, I also had an issue with loading the model, for which I upgraded numba. Any suggestions? Thanks in advance!
@lucijakrusic Not quite sure what the solve is here. I assume you are loading from a pickle, right? In that case, you will need to make sure that all versions of all dependencies are exactly the same as when you saved the model.
The code:
The error:
AttributeError: 'NNDescent' object has no attribute '_bit_trees'
The solution:
I downgraded my pynndescent from 0.5.12 to 0.5.11. That solved the problem, but just bringing this to your attention in case there's a change that needs to be made moving forward.
The text was updated successfully, but these errors were encountered: