AlexanderHolmes0
commited on
Commit
•
8530c9b
1
Parent(s):
38662ed
Add BERTopic model
Browse files- .gitattributes +1 -0
- README.md +169 -0
- config.json +17 -0
- ctfidf.safetensors +3 -0
- ctfidf_config.json +3 -0
- topic_embeddings.safetensors +3 -0
- topics.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
ctfidf_config.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- bertopic
|
5 |
+
library_name: bertopic
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
---
|
8 |
+
|
9 |
+
# C2-Topic-Model-100
|
10 |
+
|
11 |
+
This is a [BERTopic](https://github.com/MaartenGr/BERTopic) model.
|
12 |
+
BERTopic is a flexible and modular topic modeling framework that allows for the generation of easily interpretable topics from large datasets.
|
13 |
+
|
14 |
+
## Usage
|
15 |
+
|
16 |
+
To use this model, please install BERTopic:
|
17 |
+
|
18 |
+
```
|
19 |
+
pip install -U bertopic
|
20 |
+
```
|
21 |
+
|
22 |
+
You can use the model as follows:
|
23 |
+
|
24 |
+
```python
|
25 |
+
from bertopic import BERTopic
|
26 |
+
topic_model = BERTopic.load("AlexanderHolmes0/C2-Topic-Model-100")
|
27 |
+
|
28 |
+
topic_model.get_topic_info()
|
29 |
+
```
|
30 |
+
|
31 |
+
## Topic overview
|
32 |
+
|
33 |
+
* Number of topics: 100
|
34 |
+
* Number of training documents: 828299
|
35 |
+
|
36 |
+
<details>
|
37 |
+
<summary>Click here for an overview of all topics.</summary>
|
38 |
+
|
39 |
+
| Topic ID | Topic Keywords | Topic Frequency | Label |
|
40 |
+
|----------|----------------|-----------------|-------|
|
41 |
+
| -1 | you - to - your - and - that | 546 | -1_you_to_your_and |
|
42 |
+
| 0 | price - of - in - value - index | 34030 | 0_price_of_in_value |
|
43 |
+
| 1 | you - card - credit - your - to | 102457 | 1_you_card_credit_your |
|
44 |
+
| 2 | rating - trust - shares - quaer - stock | 171217 | 2_rating_trust_shares_quaer |
|
45 |
+
| 3 | game - washington - wizards - the - season | 30538 | 3_game_washington_wizards_the |
|
46 |
+
| 4 | app - easy - love - great - my | 57205 | 4_app_easy_love_great |
|
47 |
+
| 5 | and - to - the - in - about | 27829 | 5_and_to_the_in |
|
48 |
+
| 6 | deals - save - com - black - deal | 67826 | 6_deals_save_com_black |
|
49 |
+
| 7 | app - my - it - me - account | 23384 | 7_app_my_it_me |
|
50 |
+
| 8 | easy - use - very - convenient - navigate | 25012 | 8_easy_use_very_convenient |
|
51 |
+
| 9 | tickets - ticketmaster - swift - presale - taylor | 20637 | 9_tickets_ticketmaster_swift_presale |
|
52 |
+
| 10 | you - work - to - that - it | 14825 | 10_you_work_to_that |
|
53 |
+
| 11 | rating - stock - shares - 00 - quaer | 16734 | 11_rating_stock_shares_00 |
|
54 |
+
| 12 | patent - virginia - alexandria - inventors - assigned | 9483 | 12_patent_virginia_alexandria_inventors |
|
55 |
+
| 13 | de - la - en - el - que | 5562 | 13_de_la_en_el |
|
56 |
+
| 14 | it - you - wiki - that - he | 7589 | 14_it_you_wiki_that |
|
57 |
+
| 15 | biden - capitol - that - trump - the | 29399 | 15_biden_capitol_that_trump |
|
58 |
+
| 16 | great - good - excellent - awesome - very | 15650 | 16_great_good_excellent_awesome |
|
59 |
+
| 17 | hi - hey - me - hello - hu | 9391 | 17_hi_hey_me_hello |
|
60 |
+
| 18 | cou - county - case - to - the | 3496 | 18_cou_county_case_to |
|
61 |
+
| 19 | arena - center - tour - music - tickets | 9937 | 19_arena_center_tour_music |
|
62 |
+
| 20 | ihearadio - jingle - ball - photo - her | 16963 | 20_ihearadio_jingle_ball_photo |
|
63 |
+
| 21 | and - to - the - you - for | 7139 | 21_and_to_the_you |
|
64 |
+
| 22 | garcia - davis - fight - gervonta - he | 13708 | 22_garcia_davis_fight_gervonta |
|
65 |
+
| 23 | ihearadio - photo - festival - music - getty | 3245 | 23_ihearadio_photo_festival_music |
|
66 |
+
| 24 | farm - farmers - loans - loan - mogage | 4962 | 24_farm_farmers_loans_loan |
|
67 |
+
| 25 | banks - bank - zelle - overdraft - fees | 2692 | 25_banks_bank_zelle_overdraft |
|
68 |
+
| 26 | covid - nyc - bar - search - map | 8970 | 26_covid_nyc_bar_search |
|
69 |
+
| 27 | helix - solutions - aris - energy - water | 1398 | 27_helix_solutions_aris_energy |
|
70 |
+
| 28 | bs - blt - bue - crap - bib | 1635 | 28_bs_blt_bue_crap |
|
71 |
+
| 29 | matador - ironwood - resources - mtdr - company | 1286 | 29_matador_ironwood_resources_mtdr |
|
72 |
+
| 30 | doubleverify - dv - shopify - rating - stock | 1336 | 30_doubleverify_dv_shopify_rating |
|
73 |
+
| 31 | __ - http - add - me - please | 1184 | 31____http_add_me |
|
74 |
+
| 32 | amphastar - crowdstrike - pharmaceuticals - rating - stock | 1583 | 32_amphastar_crowdstrike_pharmaceuticals_rating |
|
75 |
+
| 33 | boy - wentz - band - fob - ego | 1087 | 33_boy_wentz_band_fob |
|
76 |
+
| 34 | nabors - industries - arvinas - rating - drilling | 1233 | 34_nabors_industries_arvinas_rating |
|
77 |
+
| 35 | arena - blink - center - may - 182 | 1215 | 35_arena_blink_center_may |
|
78 |
+
| 36 | biosciences - akoya - biopharmaceuticals - stock - of | 1573 | 36_biosciences_akoya_biopharmaceuticals_stock |
|
79 |
+
| 37 | therapeutics - rapt - chimerix - stock - rating | 1795 | 37_therapeutics_rapt_chimerix_stock |
|
80 |
+
| 38 | written - news - episode - video - the | 1170 | 38_written_news_episode_video |
|
81 |
+
| 39 | one - capital - you - it - that | 5740 | 39_one_capital_you_it |
|
82 |
+
| 40 | wizards - homebody - predictions - odds - picks | 13044 | 40_wizards_homebody_predictions_odds |
|
83 |
+
| 41 | sweepstakes - sponsor - any - prize - or | 2093 | 41_sweepstakes_sponsor_any_prize |
|
84 |
+
| 42 | cameron - her - getty - images - photo | 852 | 42_cameron_her_getty_images |
|
85 |
+
| 43 | arena - center - aug - drake - tour | 785 | 43_arena_center_aug_drake |
|
86 |
+
| 44 | eur1 - eur - of - price - in | 1120 | 44_eur1_eur_of_price |
|
87 |
+
| 45 | puth - like - love - he - song | 2216 | 45_puth_like_love_he |
|
88 |
+
| 46 | easy - very - peasy - fast - quick | 1798 | 46_easy_very_peasy_fast |
|
89 |
+
| 47 | immersive - vr - tech - forward - looking | 2191 | 47_immersive_vr_tech_forward |
|
90 |
+
| 48 | chargepoint - chpt - rating - stock - shares | 1611 | 48_chargepoint_chpt_rating_stock |
|
91 |
+
| 49 | chvrches - hott - stranding - her - mayberry | 592 | 49_chvrches_hott_stranding_her |
|
92 |
+
| 50 | tkk - tk - tzsarbreaux - 20se - ttds | 563 | 50_tkk_tk_tzsarbreaux_20se |
|
93 |
+
| 51 | morello - white - belasco - untamable - unpredictable | 630 | 51_morello_white_belasco_untamable |
|
94 |
+
| 52 | our - peapack - gladstone - we - and | 561 | 52_our_peapack_gladstone_we |
|
95 |
+
| 53 | white - footage - ihearadio - his - beck | 677 | 53_white_footage_ihearadio_his |
|
96 |
+
| 54 | libey - energy - lb - oilfield - stock | 668 | 54_libey_energy_lb_oilfield |
|
97 |
+
| 55 | trump - investigation - james - attorney - his | 853 | 55_trump_investigation_james_attorney |
|
98 |
+
| 56 | adr - adrs - mellon - of - in | 1024 | 56_adr_adrs_mellon_of |
|
99 |
+
| 57 | energy - rating - chesapeake - oil - research | 3156 | 57_energy_rating_chesapeake_oil |
|
100 |
+
| 58 | center - arena - 12 - tso - ghosts | 2762 | 58_center_arena_12_tso |
|
101 |
+
| 59 | socure - identity - verification - fraud - ventures | 484 | 59_socure_identity_verification_fraud |
|
102 |
+
| 60 | dua - her - pop - lipa - ihearadio | 567 | 60_dua_her_pop_lipa |
|
103 |
+
| 61 | laroi - kid - his - song - unreleased | 747 | 61_laroi_kid_his_song |
|
104 |
+
| 62 | fennec - pharmaceuticals - fenc - rating - stock | 413 | 62_fennec_pharmaceuticals_fenc_rating |
|
105 |
+
| 63 | lizzo - dance - kardashian - her - noh | 466 | 63_lizzo_dance_kardashian_her |
|
106 |
+
| 64 | saul - centers - bfs - rating - shares | 454 | 64_saul_centers_bfs_rating |
|
107 |
+
| 65 | ryan - brothers - jingle - ihearadio - ajr | 316 | 65_ryan_brothers_jingle_ihearadio |
|
108 |
+
| 66 | food - wine - festival - chef - beach | 536 | 66_food_wine_festival_chef |
|
109 |
+
| 67 | arena - spos - pumpkins - center - smashing | 1107 | 67_arena_spos_pumpkins_center |
|
110 |
+
| 68 | her - max - ava - jingle - ihearadio | 636 | 68_her_max_ava_jingle |
|
111 |
+
| 69 | montrose - environmental - meg - group - rating | 420 | 69_montrose_environmental_meg_group |
|
112 |
+
| 70 | lauv - song - his - photo - jingle | 347 | 70_lauv_song_his_photo |
|
113 |
+
| 71 | niall - harry - album - circus - direction | 344 | 71_niall_harry_album_circus |
|
114 |
+
| 72 | flute - lizzo - library - crystal - congress | 396 | 72_flute_lizzo_library_crystal |
|
115 |
+
| 73 | alamos - agi - gold - newswire - globe | 1246 | 73_alamos_agi_gold_newswire |
|
116 |
+
| 74 | capitals - sharks - nhl - expe - odds | 516 | 74_capitals_sharks_nhl_expe |
|
117 |
+
| 75 | 07 - 06 - center - arena - paramore | 571 | 75_07_06_center_arena |
|
118 |
+
| 76 | dcfc - tritium - chargers - rating - limited | 698 | 76_dcfc_tritium_chargers_rating |
|
119 |
+
| 77 | groove - engagement - sales - platform - salesforce | 288 | 77_groove_engagement_sales_platform |
|
120 |
+
| 78 | album - billboard - songs - cha - swift | 354 | 78_album_billboard_songs_cha |
|
121 |
+
| 79 | google - viual - card - you - your | 962 | 79_google_viual_card_you |
|
122 |
+
| 80 | train - album - am - gold - ihearadio | 1194 | 80_train_album_am_gold |
|
123 |
+
| 81 | ihearadio - chili - peppers - hair - he | 540 | 81_ihearadio_chili_peppers_hair |
|
124 |
+
| 82 | dj - baseball - ice - hockey - football | 381 | 82_dj_baseball_ice_hockey |
|
125 |
+
| 83 | dhabi - abu - adcb - aed1 - al | 749 | 83_dhabi_abu_adcb_aed1 |
|
126 |
+
| 84 | salle - la - saint - joseph - explorers | 360 | 84_salle_la_saint_joseph |
|
127 |
+
| 85 | holiday - day - open - closed - holidays | 254 | 85_holiday_day_open_closed |
|
128 |
+
| 86 | iheacountry - festival - country - ihearadio - austin | 976 | 86_iheacountry_festival_country_ihearadio |
|
129 |
+
| 87 | foods - simply - smpl - good - kilts | 1490 | 87_foods_simply_smpl_good |
|
130 |
+
| 88 | parking - http - howard - city - divisons | 387 | 88_parking_http_howard_city |
|
131 |
+
| 89 | bellamy - delonge - extraterrestrial - ego - alter | 373 | 89_bellamy_delonge_extraterrestrial_ego |
|
132 |
+
| 90 | rhett - his - country - thomas - album | 289 | 90_rhett_his_country_thomas |
|
133 |
+
| 91 | lgbt - prnewswire - national - nglcc - wbenc | 4136 | 91_lgbt_prnewswire_national_nglcc |
|
134 |
+
| 92 | tires - tire - goodyear - save - walma | 912 | 92_tires_tire_goodyear_save |
|
135 |
+
| 93 | customer - marketing - business - customers - your | 453 | 93_customer_marketing_business_customers |
|
136 |
+
| 94 | twitter - musk - that - to - elon | 844 | 94_twitter_musk_that_to |
|
137 |
+
| 95 | cincinnati - fhlb - results - unaudited - prnewswire | 1539 | 95_cincinnati_fhlb_results_unaudited |
|
138 |
+
| 96 | accurate - complete - securities - reader - necessarily | 581 | 96_accurate_complete_securities_reader |
|
139 |
+
| 97 | 22 - arena - center - vengeance - viva | 383 | 97_22_arena_center_vengeance |
|
140 |
+
| 98 | button - mobile - marketers - commerce - platform | 733 | 98_button_mobile_marketers_commerce |
|
141 |
+
|
142 |
+
</details>
|
143 |
+
|
144 |
+
## Training hyperparameters
|
145 |
+
|
146 |
+
* calculate_probabilities: False
|
147 |
+
* language: None
|
148 |
+
* low_memory: False
|
149 |
+
* min_topic_size: 500
|
150 |
+
* n_gram_range: (1, 1)
|
151 |
+
* nr_topics: 100
|
152 |
+
* seed_topic_list: None
|
153 |
+
* top_n_words: 10
|
154 |
+
* verbose: True
|
155 |
+
* zeroshot_min_similarity: 0.7
|
156 |
+
* zeroshot_topic_list: None
|
157 |
+
|
158 |
+
## Framework versions
|
159 |
+
|
160 |
+
* Numpy: 1.26.4
|
161 |
+
* HDBSCAN: 0.8.33
|
162 |
+
* UMAP: 0.5.5
|
163 |
+
* Pandas: 2.0.3
|
164 |
+
* Scikit-Learn: 1.4.1.post1
|
165 |
+
* Sentence-transformers: 2.5.1
|
166 |
+
* Transformers: 4.39.1
|
167 |
+
* Numba: 0.59.1
|
168 |
+
* Plotly: 5.20.0
|
169 |
+
* Python: 3.11.8
|
config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"calculate_probabilities": false,
|
3 |
+
"language": null,
|
4 |
+
"low_memory": false,
|
5 |
+
"min_topic_size": 500,
|
6 |
+
"n_gram_range": [
|
7 |
+
1,
|
8 |
+
1
|
9 |
+
],
|
10 |
+
"nr_topics": 100,
|
11 |
+
"seed_topic_list": null,
|
12 |
+
"top_n_words": 10,
|
13 |
+
"verbose": true,
|
14 |
+
"zeroshot_min_similarity": 0.7,
|
15 |
+
"zeroshot_topic_list": null,
|
16 |
+
"embedding_model": "BAAI/bge-small-en-v1.5"
|
17 |
+
}
|
ctfidf.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3297bdbc979e6a9e5d55a61ed8d2c91102c645a19ea4cd0ceb2fe5022103d0fd
|
3 |
+
size 30316372
|
ctfidf_config.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8b5e69423c304d4029578a1163d863099aed27168c855f27b4aa42f95e8489d
|
3 |
+
size 20526034
|
topic_embeddings.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:62ec3aaa3567972184a4083f1a7688fb512a33b34a60193062178de3bd393fe2
|
3 |
+
size 153688
|
topics.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|