bertopic text-classification region:us
---
library_name: bertopic
pipeline_tag: text-classification
tags:
- bertopic
---

# MARTINI_enrich_BERTopic_GenWarz

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_GenWarz")

topic_model.get_topic_info()
```

## Topic overview

* Number of topics: 33
* Number of training documents: 3307

<details>
  <summary>Click here for an overview of all topics.</summary>
  
  | Topic ID | Topic Keywords | Topic Frequency | Label | 
|----------|----------------|-----------------|-------| 
| -1 | republicans - biden - fbi - carlson - mayorkas | 20 | -1_republicans_biden_fbi_carlson | 
| 0 | bidens - impeachment - subpoenaed - joe - chairmen | 1923 | 0_bidens_impeachment_subpoenaed_joe | 
| 1 | biden - doocy - fascists - commander - gaffes | 123 | 1_biden_doocy_fascists_commander | 
| 2 | indoctrination - teachers - curriculum - marxists - racial | 97 | 2_indoctrination_teachers_curriculum_marxists | 
| 3 | globalist - america - independence - conservatives - patriots | 69 | 3_globalist_america_independence_conservatives | 
| 4 | trump - judges - indicted - pretrial - persecuting | 66 | 4_trump_judges_indicted_pretrial | 
| 5 | vaccine - myocarditis - whistleblower - dna - scientists | 62 | 5_vaccine_myocarditis_whistleblower_dna | 
| 6 | hamas - netanyahu - jerusalem - genocidal - hostages | 57 | 6_hamas_netanyahu_jerusalem_genocidal | 
| 7 | pentagon - taiwan - mattis - allies - surveilling | 57 | 7_pentagon_taiwan_mattis_allies | 
| 8 | censorship - fbi - disinfo - google - sued | 55 | 8_censorship_fbi_disinfo_google | 
| 9 | illegals - migrant - cbp - invaded - haitians | 54 | 9_illegals_migrant_cbp_invaded | 
| 10 | ukraine - zakharova - bush - sudetenland - bioweapons | 54 | 10_ukraine_zakharova_bush_sudetenland | 
| 11 | gunman - shooting - officers - arrested - militants | 51 | 11_gunman_shooting_officers_arrested | 
| 12 | senator - filibuster - feinstein - justices - politicization | 46 | 12_senator_filibuster_feinstein_justices | 
| 13 | inflation - yellen - trillion - stimulus - kennedy | 44 | 13_inflation_yellen_trillion_stimulus | 
| 14 | tucker - carlson - zionists - algeria - brutalized | 43 | 14_tucker_carlson_zionists_algeria | 
| 15 | trump - bartiromo - successor - 2024 - ww3 | 41 | 15_trump_bartiromo_successor_2024 | 
| 16 | desantis - newsom - california - gavin - leninism | 39 | 16_desantis_newsom_california_gavin | 
| 17 | gorsuch - ballot - certiorari - ruling - disqualified | 39 | 17_gorsuch_ballot_certiorari_ruling | 
| 18 | epstein - clinton - guilty - jpmorgan - prostitution | 38 | 18_epstein_clinton_guilty_jpmorgan | 
| 19 | vaccinated - employers - reinstates - fired - mandatory | 30 | 19_vaccinated_employers_reinstates_fired | 
| 20 | mccarthy - impeachments - matt - speaker - voted | 29 | 20_mccarthy_impeachments_matt_speaker | 
| 21 | ballots - fake - mailed - georgia - registrations | 29 | 21_ballots_fake_mailed_georgia | 
| 22 | musk - suing - retweeted - soros - headlines | 28 | 22_musk_suing_retweeted_soros | 
| 23 | fauci - virologist - hydroxychloroquine - robert - pcr | 28 | 23_fauci_virologist_hydroxychloroquine_robert | 
| 24 | fulton - impeaching - prosecutor - georgia - wilkinson | 28 | 24_fulton_impeaching_prosecutor_georgia | 
| 25 | marjorie - greene - leftists - hypocrisy - swatted | 25 | 25_marjorie_greene_leftists_hypocrisy | 
| 26 | mayor - immigrants - sanctuary - adams - york | 23 | 26_mayor_immigrants_sanctuary_adams | 
| 27 | texas - governor - border - defend - dhs | 22 | 27_texas_governor_border_defend | 
| 28 | maricopa - legislators - kelli - overruled - soros | 22 | 28_maricopa_legislators_kelli_overruled | 
| 29 | fbi - informants - january - capitol - beattie | 22 | 29_fbi_informants_january_capitol | 
| 30 | jail - sentencing - smollett - seditious - sentence | 22 | 30_jail_sentencing_smollett_seditious | 
| 31 | rioters - capitol - january - policeman - videoed | 21 | 31_rioters_capitol_january_policeman |
  
</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
