MaartenGr / MaartenGr/KeyBERT

Combination of KeyBERT + BERTopic returns an error

Open
#168 7 comments 1 reaction 0 assignees View on GitHub
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!

![sh1](https://user-images.githubusercontent.com/58444964/223685305-3ed24121-f41c-4f65-b9ba-bfe05c1eeab5.JPG)
![sh2](https://user-images.githubusercontent.com/58444964/223685330-5fde18ae-17e3-4975-bb6e-3e8402c6f174.JPG)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.