MaartenGr / BERTopic

Leveraging BERT and c-TF-IDF to create easily interpretable topics.
https://maartengr.github.io/BERTopic/
MIT License
5.76k stars 716 forks source link

Allow chained main representation and aspects simultaneously #2021

Closed smartIU closed 1 month ago

smartIU commented 1 month ago

Small addition to allow representation models like:

representation_model = { "Main": [KeyBERTInspired(), MaximalMarginalRelevance()], "Aspect": [KeyBERTInspired(), MaximalMarginalRelevance(), LlamaCPP()] }

MaartenGr commented 1 month ago

Thank you for the PR! Note though that this is a duplicate of https://github.com/MaartenGr/BERTopic/pull/2002 and will be closed in favor of that one.