
# mods-meta-topics-bertmodel

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("jaimevera1107/mods-meta-topics-bertmodel")

topic_model.get_topic_info()
```

## Topic overview

* Number of topics: 40
* Number of training documents: 1606

<details>
  <summary>Click here for an overview of all topics.</summary>
  
  | Topic ID | Topic Keywords | Topic Frequency | Label | 
|----------|----------------|-----------------|-------| 
| 0 | adult explicit - explicit erotic - adult explicit erotic - erotic - undressing | 155 | 0_adult explicit_explicit erotic_adult explicit erotic_erotic | 
| 1 | hate - hateful - slur - degrading - slurs | 91 | 1_hate_hateful_slur_degrading | 
| 2 | traffic - artificial - artificial traffic - scary - low | 87 | 2_traffic_artificial_artificial traffic_scary | 
| 3 | suicide - self harm - suicide self - suicide self harm - self | 85 | 3_suicide_self harm_suicide self_suicide self harm | 
| 4 | nudity - adult nudity - nudity adult - nudity implied - exposure | 63 | 4_nudity_adult nudity_nudity adult_nudity implied | 
| 5 | consensual - non consensual - involving minor - minor - promotion non consensual | 60 | 5_consensual_non consensual_involving minor_minor | 
| 6 | animal - animals - animals animal - animal mutilation - slaughter | 58 | 6_animal_animals_animals animal_animal mutilation | 
| 7 | sexual harassment - trafficking - human trafficking - harassment - sexual exploitation | 57 | 7_sexual harassment_trafficking_human trafficking_harassment | 
| 8 | identifiable - identifiable information - personal - personally identifiable information - personally identifiable | 56 | 8_identifiable_identifiable information_personal_personally identifiable information | 
| 9 | dangerous - harm dangerous - promotion dangerous - challenges - lead | 52 | 9_dangerous_harm dangerous_promotion dangerous_challenges | 
| 10 | suspected - going live - going - age - live | 51 | 10_suspected_going live_going_age | 
| 11 | child - exploitation - neglect - endangerment - abuse | 51 | 11_child_exploitation_neglect_endangerment | 
| 12 | explicit content - nudity minor - toddlers - child pornography - partial | 46 | 12_explicit content_nudity minor_toddlers_child pornography | 
| 13 | terrorism - terrorist - nuclear - organizations - terrorist organizations | 46 | 13_terrorism_terrorist_nuclear_organizations | 
| 14 | destruction - property - firearms - destruction property - damage | 45 | 14_destruction_property_firearms_destruction property | 
| 15 | false - conspiracy - misinformation - political - claims | 43 | 15_false_conspiracy_misinformation_political | 
| 16 | drug - substances - drugs - controlled - controlled substances | 41 | 16_drug_substances_drugs_controlled | 
| 17 | violent - violence - violent fighting - fighting - threat | 41 | 17_violent_violence_violent fighting_fighting | 
| 18 | intellectual - intellectual property - stolen - copyright - copyrighted | 41 | 18_intellectual_intellectual property_stolen_copyright | 
| 19 | gore - human body - shocking - mutilated human - blood | 38 | 19_gore_human body_shocking_mutilated human | 
| 20 | crime - criminal - criminal activities - theft - depiction theft | 37 | 20_crime_criminal_criminal activities_theft | 
| 21 | sexual language - language adult - language - terms - sex education | 37 | 21_sexual language_language adult_language_terms | 
| 22 | pornography - adult pornography - pornography promotion - links - vulgarity | 33 | 22_pornography_adult pornography_pornography promotion_links | 
| 23 | culturally - cultural - appropriate - culturally appropriate - clothing | 30 | 23_culturally_cultural_appropriate_culturally appropriate | 
| 24 | alcohol products - tobacco - alcohol - tobacco alcohol products - products | 27 | 24_alcohol products_tobacco_alcohol_tobacco alcohol products | 
| 25 | uninformative content - brand - uninformative - qr code - limited | 25 | 25_uninformative content_brand_uninformative_qr code | 
| 26 | operations - death - homicide - torture - enforcement | 23 | 26_operations_death_homicide_torture | 
| 27 | consuming - minor tobacco - possession - tobacco - underage consuming | 21 | 27_consuming_minor tobacco_possession_tobacco | 
| 28 | controversial - social - opposing - intended - provoke | 19 | 28_controversial_social_opposing_intended | 
| 29 | grooming - pedophilia - pedophilic - minors grooming - relationship | 18 | 29_grooming_pedophilia_pedophilic_minors grooming | 
| 30 | platforms - ads - direction - party platforms - commercial | 17 | 30_platforms_ads_direction_party platforms | 
| 31 | bullying - bullying statements - statements - cyberbullying - bullying bullying | 17 | 31_bullying_bullying statements_statements_cyberbullying | 
| 32 | scams - frauds - frauds scams - schemes - scamming | 16 | 32_scams_frauds_frauds scams_schemes | 
| 33 | hacking - malware - phishing - phishing scams - threat hacking | 15 | 33_hacking_malware_phishing_phishing scams | 
| 34 | harassment - threats harassment - threats - identity harassment lgbtq - offensive comments verbal | 14 | 34_harassment_threats harassment_threats_identity harassment lgbtq | 
| 35 | fictional - violence fictional settings - accident news - violence fictional - fictional setting violence | 13 | 35_fictional_violence fictional settings_accident news_violence fictional | 
| 36 | gambling - gambling promotion - gambling promotion gambling - promotion gambling - depiction gambling | 12 | 36_gambling_gambling promotion_gambling promotion gambling_promotion gambling | 
| 37 | prostitution - adult prostitution - illegal sex - services - legal consequences prostitution | 11 | 37_prostitution_adult prostitution_illegal sex_services | 
| 38 | kissing - erotic kissing - lip - erotic kissing involving - kissing involving adult | 9 | 38_kissing_erotic kissing_lip_erotic kissing involving | 
| 39 | incest - incest incestuous - incestuous - themes involving - involving incest | 5 | 39_incest_incest incestuous_incestuous_themes involving |
  
</details>

## Training hyperparameters

* calculate_probabilities: False
* 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: True

## Framework versions

* Numpy: 1.23.5
* HDBSCAN: 0.8.33
* UMAP: 0.5.4
* Pandas: 1.5.3
* Scikit-Learn: 1.2.2
* Sentence-transformers: 2.2.2
* Transformers: 4.24.0
* Numba: 0.58.1
* Plotly: 5.15.0
* Python: 3.10.12

{"library_name": "bertopic", "tags": ["bertopic"], "pipeline_tag": "text-classification"}
bertopic text-classification region:us