MaartenGr / BERTopic

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

Update distribution.md #2162

Closed saikumaru closed 1 month ago

saikumaru commented 1 month ago

topic_distr provides topic scores for each doc, i.e. n- documents and m- topics for each of that doc

What does this PR do?

There is a documentation typo thats confusing and needs correction.

Eg

topic_distr, _ = topic_model.approximate_distribution(documents_array, window=4)

len(topic_distr)#n- number of documents
#output 4172
len(topic_distr[0])#m- number of topics
#output 60

Before submitting

MaartenGr commented 1 month ago

Thanks for the PR, LGTM!