MaartenGr / MaartenGr/BERTopic

Issues Loading BERTopic

Open
#1,783 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.8k
Forks
920
Avg merge
22h 24m
Merged PRs (30d)
5

Description

Hi Maarten,

Huge fan of your work! However, since today, I receive the following error message, when loading BERTopic:
TypeError: Dispatcher._rebuild() got an unexpected keyword argument 'impl_kind'

How I load the model:
```

from bertopic import BERTopic
import umap.umap_ as umap
import numpy as np

topic_model = BERTopic.load("mymodel")
```

I use:
bertopic 0.16.0
numba 0.59.0
umap-learn 0.5.5
numpy 1.23.5

Can you help :)?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the BERTopic.load("mymodel") failure using the loading snippet and the listed bertopic, numba, umap-learn, and numpy versions. Start by checking the dependency combination behind Dispatcher._rebuild() and verify that loading the saved model completes without the unexpected impl_kind argument error.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.