AngelPanizo's picture
Add BERTopic model
fe35bfc verified
---
tags:
- bertopic
library_name: bertopic
pipeline_tag: text-classification
---
# MARTINI_enrich_BERTopic_generationidentitaire
This is a [BERTopic](https://github.com/MaartenGr/BERTopic) model.
BERTopic is a flexible and modular topic modeling framework that allows for the generation of easily interpretable topics from large datasets.
## Usage
To use this model, please install BERTopic:
```
pip install -U bertopic
```
You can use the model as follows:
```python
from bertopic import BERTopic
topic_model = BERTopic.load("AIDA-UPM/MARTINI_enrich_BERTopic_generationidentitaire")
topic_model.get_topic_info()
```
## Topic overview
* Number of topics: 11
* Number of training documents: 839
<details>
<summary>Click here for an overview of all topics.</summary>
| Topic ID | Topic Keywords | Topic Frequency | Label |
|----------|----------------|-----------------|-------|
| -1 | islamistes - terroriste - algerie - racisme - toulouse | 20 | -1_islamistes_terroriste_algerie_racisme |
| 0 | lyon - toulousains - agresseurs - arrondissement - affiches | 428 | 0_lyon_toulousains_agresseurs_arrondissement |
| 1 | marseille - migratoire - soutenez - frontieres - portillon | 134 | 1_marseille_migratoire_soutenez_frontieres |
| 2 | pauvres - solidaire - parisien - macron - quarantaine | 58 | 2_pauvres_solidaire_parisien_macron |
| 3 | droite - zemmour - colonialisme - raisons - charlemagne | 34 | 3_droite_zemmour_colonialisme_raisons |
| 4 | parler - sociaux - liberte - politiquement - censurer | 31 | 4_parler_sociaux_liberte_politiquement |
| 5 | boxeurs - lyon - reouverture - entrainements - septembre | 29 | 5_boxeurs_lyon_reouverture_entrainements |
| 6 | universite - belgique - macronisme - guillaume - redacteur | 29 | 6_universite_belgique_macronisme_guillaume |
| 7 | lyon - antireligieuse - decembre - traditionnelle - organisateurs | 27 | 7_lyon_antireligieuse_decembre_traditionnelle |
| 8 | islamistes - bataclan - attentats - abdeslam - novembre | 25 | 8_islamistes_bataclan_attentats_abdeslam |
| 9 | islamistes - muezzin - youssef - pourquoi - goussainville | 24 | 9_islamistes_muezzin_youssef_pourquoi |
</details>
## Training hyperparameters
* calculate_probabilities: True
* language: None
* low_memory: False
* min_topic_size: 10
* n_gram_range: (1, 1)
* nr_topics: None
* seed_topic_list: None
* top_n_words: 10
* verbose: False
* zeroshot_min_similarity: 0.7
* zeroshot_topic_list: None
## Framework versions
* Numpy: 1.26.4
* HDBSCAN: 0.8.40
* UMAP: 0.5.7
* Pandas: 2.2.3
* Scikit-Learn: 1.5.2
* Sentence-transformers: 3.3.1
* Transformers: 4.46.3
* Numba: 0.60.0
* Plotly: 5.24.1
* Python: 3.10.12