CoolFace
Modelpublic

karinegabsschon/BERTopic_Political

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes5downloads
Model Card

tags:

  • bertopic libraryname: bertopic pipelinetag: text-classification ---

BERTopic_Political

This is a 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("karinegabsschon/BERTopic_Political")

topic_model.get_topic_info()

Topic overview

  • Number of topics: 20
  • Number of training documents: 619

<details> <summary>Click here for an overview of all topics.</summary>

Topic IDTopic KeywordsTopic FrequencyLabel
-1electric - tariffs - vehicles - ev - car11-1electrictariffsvehiclesev
0cars - spd - tax - electric - purchase970carsspdtaxelectric
1charging - chargers - public - ev - points871chargingchargerspublicev
2tax - car - new - electric - petrol722taxcarnewelectric
3tesla - musk - elon - elon musk - trump533teslamuskelonelon musk
4moves - aid - electric - euros - plan494movesaidelectriceuros
5byd - chinese - china - price - price war365bydchinesechinaprice
6targets - government - mandate - starmer - zero256targetsgovernmentmandatestarmer
7euros - bonus - ecological - ecological bonus - electric217eurosbonusecologicalecological bonus
8california - trump - states - administration - electric218californiatrumpstatesadministration
9tariffs - united states - united - states - plant209tariffsunited statesunitedstates
10ukraine - region - electric - ukrainian - vehicles1810ukraineregionelectricukrainian
11tesla - city - toronto - canadian - chow1611teslacitytorontocanadian
12eu - china - chinese - tariffs - minimum1512euchinachinesetariffs
13chinese - defence - security - spying - military1513chinesedefencesecurityspying
14european - eu - commission - industry - electric1414europeaneucommissionindustry
15huf - businesses - subsidies - hungary - battery1315hufbusinessessubsidieshungary
16cent - government - diesel - fleet - electric1216centgovernmentdieselfleet
17credit - tax - electric - vehicles - electric vehicles1217credittaxelectricvehicles
18british - trade - cars - government - tariffs1218britishtradecarsgovernment

</details>

Training hyperparameters

  • calculate_probabilities: False
  • language: None
  • low_memory: False
  • mintopicsize: 10
  • ngramrange: (1, 1)
  • nr_topics: None
  • seedtopiclist: None
  • topnwords: 10
  • verbose: True
  • zeroshotminsimilarity: 0.7
  • zeroshottopiclist: None

Framework versions

  • Numpy: 2.0.2
  • HDBSCAN: 0.8.40
  • UMAP: 0.5.8
  • Pandas: 2.2.2
  • Scikit-Learn: 1.6.1
  • Sentence-transformers: 4.1.0
  • Transformers: 4.53.0
  • Numba: 0.60.0
  • Plotly: 5.24.1
  • Python: 3.11.13