Skip to content

added diversity parameter to update_topics() function - #887

Merged
MaartenGr merged 2 commits into
MaartenGr:masterfrom
anubhabdaserrr:BERTopic_add_diversity_param
Dec 19, 2022
Merged

MaartenGr merged 2 commits into
MaartenGr:masterfrom
anubhabdaserrr:BERTopic_add_diversity_param

Conversation

@anubhabdaserrr

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

done!

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

Copy link
Copy Markdown
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

anubhabdaserrr commented Dec 19, 2022 •

Copy link
Copy Markdown
Contributor Author

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