MaartenGr / BERTopic

Leveraging BERT and c-TF-IDF to create easily interpretable topics.

Home Page:https://maartengr.github.io/BERTopic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home page get_topic_info() function not understood

EricIrving-chs opened this issue · comments

QQ截图20240331180918
QQ截图20240331180926

Why don't the two functions get the same topic name with the same label? In fact I think the first picture is out of order, the name of the topic labeled 0 should not be 0_... What?

It seems there is something strange going on with your topics when you run topic_model.get_topic_info(). Could you provide your full code? Also, which version of BERTopic are you using?

It seems there is something strange going on with your topics when you run topic_model.get_topic_info(). Could you provide your full code? Also, which version of BERTopic are you using?

Thank you for your reply, this is an example of the official home page of bertopic, which I also found problematic.

@EricIrving-chs Could you provide the full code? I'm not entirely sure which example you are referring to and which version of BERTopic you are using. It would help me understand the problem if you could provide a working example.

@EricIrving-chs Could you provide the full code? I'm not entirely sure which example you are referring to and which version of BERTopic you are using. It would help me understand the problem if you could provide a working example.

QQ截图20240403143514
This is not the code I ran, this is the example given by your Github, it's what comes out of running your program

Aaah, now I understand! I figured you ran into some issue with the topic naming/ids.

It seems that the example shown is simply from old code and is not what comes out of running BERTopic. In practice, these are now correctly ordered by their frequency.