Instructions to use Alprocco/semi_supervised_bertopic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Alprocco/semi_supervised_bertopic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Alprocco/semi_supervised_bertopic")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Alprocco/semi_supervised_bertopic", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,9 +10,13 @@ pip install bertopic
|
|
| 10 |
|
| 11 |
You can use the model as follows:
|
| 12 |
|
| 13 |
-
from bertopic import BERTopic
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
Number of topics: 30
|
| 18 |
|
|
@@ -39,7 +43,7 @@ Loading and saving the model should be done using the same dependencies and Pyth
|
|
| 39 |
|
| 40 |
Moreover, models saved in one version of BERTopic are not guaranteed to load in other versions.
|
| 41 |
|
| 42 |
-
Framework versions
|
| 43 |
|
| 44 |
bertopic 0.15.0
|
| 45 |
|
|
|
|
| 10 |
|
| 11 |
You can use the model as follows:
|
| 12 |
|
| 13 |
+
from bertopic import BERTopic
|
| 14 |
|
| 15 |
+
topic_model = BERTopic.load("Alprocco/semi_supervised_bertopic")
|
| 16 |
+
|
| 17 |
+
topic_model.get_topic_info()
|
| 18 |
+
|
| 19 |
+
## Topic overview
|
| 20 |
|
| 21 |
Number of topics: 30
|
| 22 |
|
|
|
|
| 43 |
|
| 44 |
Moreover, models saved in one version of BERTopic are not guaranteed to load in other versions.
|
| 45 |
|
| 46 |
+
## Framework versions
|
| 47 |
|
| 48 |
bertopic 0.15.0
|
| 49 |
|