Comments (3)
Hmmm, it seems that the topics are correctly assigned but that they are re-ordered internally to make sure that the more frequent topics get lower values (they are sorted I think). So no worries, they are not actually different classifications just merely different IDs for the topics. This means that you can do one of two things. First, you can map training_topic_number
to model_topic_number
since, for instance, 4 always seems to map to 5. Second, I am not sure but I remember that manual BERTopic does not perform this sorting process.
from bertopic.
@MaartenGr thanks for the response. I had already sorted the data by count when assigning the topic numbers, so that couldn't have been the problem. Going back through and checking it turns out there was an error on my side with the way i had amalgamated topics earlier on. You explanation made me check more closely and catch this. Apologies for missing this the first time around and wasting your time. I really appreciate the library you have put together here.
from bertopic.
No problem! I'm just glad that your problem was resolved and thanks for the kind words 😄
from bertopic.
Related Issues (20)
- Zero-Shot HOT 2
- Where is the full data set of embeddings? HOT 3
- Visualization in html page HOT 1
- Guided Modeling: Problem with seed_topic_list HOT 2
- Utilizing the GPU of MacBook Pro M3 to accelerate the process of fit_transform HOT 1
- Could we know the weights of each topic? HOT 6
- Can't reproduce same results when using cuml version of UMAP and HDBSCAN HOT 3
- approximate_distribution returns only 0s HOT 5
- Feature (Watsonx): representations using Llama-3-70b and Mixtral-8x7b HOT 1
- Which hyper parameter mostly influence the number of topics for Chinese texts? HOT 3
- Zero-Shot Topic Modelling and Topics Over Time HOT 1
- Loading of saved model returns Error: "This BERTopic instance is not fitted yet. Call 'fit' with appropriate arguments before using this estimator."
- Creating representations using IBM Watsonx LLMs HOT 5
- c_tf_idf_ is None when using zero shot topic modeling. HOT 1
- Issue with Scikit-learn 1.5.0
- Error at Combining clustered topics with the zeroshot model HOT 2
- Compare LDA, NMF, LSA with BERTopic (w/ embedding: all-MiniLM-L6-v2 + dim_red: UMAP + cluster: HDBSCAN) HOT 1
- AttributeError: 'BertModel' object has no attribute 'attn_implementation' #30965 HOT 3
- Zeroshot Topic Modeling With no Embedding Model HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bertopic.