Combination of KeyBERT + BERTopic returns an error
- Dominant language
- Python
- Stars
- 4.2k
- Forks
- 385
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
Not sure if that's an issue of KeyBERT or more of a BERTopic, but I am trying to run KeyBERT + BERTopic as explained in the documentation, and getting a ValueError: Input contains NaN, infinity or a value too large for dtype('float64').
I am running the exact same two cells as in the documentation, so the problem does not come from my custom data/input. Attaching the error log screenshots. Thanks in advance!


Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the two cells from the KeyBERT documentation and review the attached error-log screenshots. Trace whether the NaN or infinity value is introduced by KeyBERT or BERTopic, then confirm the documented example runs without the reported ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100