Skip to content
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

Fix issue with .merge_models seemingly skipping topic #1898

Merged
merged 2 commits into from
Apr 18, 2024
Merged

Conversation

MaartenGr
Copy link
Owner

Adresses #1866

In some cases, when using .merge_models, it seemed that the added topics to a base model were assigned with an incorrect numbering. For instance, if the maximum topic of the base model was 5, the newly added topics would start at 7.

This issue fixes that problem and additionally ignores outlier classes as it seems there is no benefit to combining them.

Lastly, this should also fix the topic embeddings being in the incorrect order.

bertopic/_bertopic.py Outdated Show resolved Hide resolved
@MaartenGr MaartenGr merged commit 0cf7d9c into master Apr 18, 2024
2 checks passed
@MaartenGr MaartenGr deleted the fix_1866 branch July 22, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants