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

added diversity parameter to update_topics() function #887

Merged

Conversation

anubhabdaserrr
Copy link
Contributor

The diversity parameter is a component of topic representation; rather than topic formation (docs -> embeddings -> dimensionality_reduction -> clustering). The update_topics() function should provide the functionality to change the diversity parameter, as and when required. Thanks!

@MaartenGr
Copy link
Owner

Nice catch, that should definitely be changed! Could you remove the additional whitespace after the diversity parameter and docstrings? Other than that it looks good to me.

@anubhabdaserrr
Copy link
Contributor Author

done!

@MaartenGr MaartenGr merged commit 70aac96 into MaartenGr:master Dec 19, 2022
@MaartenGr
Copy link
Owner

Thanks for the quick update! LGTM, I'll go ahead and merge this now 😄

@anubhabdaserrr anubhabdaserrr deleted the BERTopic_add_diversity_param branch December 19, 2022 07:29
@anubhabdaserrr
Copy link
Contributor Author

anubhabdaserrr commented Dec 19, 2022

Sorry, I missed out on another parameter - I think top_n_words should also be added, right? I'm creating another pull request.

@MaartenGr MaartenGr mentioned this pull request Dec 27, 2022
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