AlexanderHolmes0
commited on
Add BERTopic model
Browse files- README.md +169 -0
- config.json +17 -0
- ctfidf.safetensors +3 -0
- ctfidf_config.json +0 -0
- topic_embeddings.safetensors +3 -0
- topics.json +0 -0
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 |
+
# C1-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/C1-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: 112332
|
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 | stop - people - need - help - banking | 84 | -1_stop_people_need_help |
|
42 |
+
| 0 | account - card - customer - service - phone | 4738 | 0_account_card_customer_service |
|
43 |
+
| 1 | game - thank - win - team - bazinga_sb | 21155 | 1_game_thank_win_team |
|
44 |
+
| 2 | app - need - stop - help - lol | 11918 | 2_app_need_stop_help |
|
45 |
+
| 3 | card - credit - account - customer - told | 11946 | 3_card_credit_account_customer |
|
46 |
+
| 4 | friend - request - friends - send - mind | 6152 | 4_friend_request_friends_send |
|
47 |
+
| 5 | community - event - lounge - thank - presented | 3403 | 5_community_event_lounge_thank |
|
48 |
+
| 6 | trading - whatsapp - forex - investment - profit | 4398 | 6_trading_whatsapp_forex_investment |
|
49 |
+
| 7 | - - - - | 2804 | 7____ |
|
50 |
+
| 8 | ho - genial - travolta - john - love | 1191 | 8_ho_genial_travolta_john |
|
51 |
+
| 9 | santa - john - travolta - love - movie | 1157 | 9_santa_john_travolta_love |
|
52 |
+
| 10 | que - en - la - para - el | 1695 | 10_que_en_la_para |
|
53 |
+
| 11 | worst - service - company - customer - bank | 1532 | 11_worst_service_company_customer |
|
54 |
+
| 12 | love - awesome - happy - best - great | 2417 | 12_love_awesome_happy_best |
|
55 |
+
| 13 | people - blessed - grands - cus - paying | 2736 | 13_people_blessed_grands_cus |
|
56 |
+
| 14 | later - connect - definitely - inbox - hello | 896 | 14_later_connect_definitely_inbox |
|
57 |
+
| 15 | shimmerr - kt - txscapitalone - capit - word | 4157 | 15_shimmerr_kt_txscapitalone_capit |
|
58 |
+
| 16 | credit - card - score - limit - pay | 535 | 16_credit_card_score_limit |
|
59 |
+
| 17 | spell - dr - caster - ex - lover | 5072 | 17_spell_dr_caster_ex |
|
60 |
+
| 18 | love - business - thank - credit - best | 672 | 18_love_business_thank_credit |
|
61 |
+
| 19 | links - mm - click - nutshell - join | 2133 | 19_links_mm_click_nutshell |
|
62 |
+
| 20 | travel - points - venture - miles - flights | 515 | 20_travel_points_venture_miles |
|
63 |
+
| 21 | slash - guitar - guitarist - riff - song | 1271 | 21_slash_guitar_guitarist_riff |
|
64 |
+
| 22 | reachout - miller - david - comes - investing | 630 | 22_reachout_miller_david_comes |
|
65 |
+
| 23 | preston - mourning - underneath - commenting - kelly | 303 | 23_preston_mourning_underneath_commenting |
|
66 |
+
| 24 | tnt - qbs - reminded - tune - headed | 211 | 24_tnt_qbs_reminded_tune |
|
67 |
+
| 25 | working - website - isn - expired - enter | 222 | 25_working_website_isn_expired |
|
68 |
+
| 26 | suck - sucks - lol - fake - sounds | 947 | 26_suck_sucks_lol_fake |
|
69 |
+
| 27 | love - cute - absolutely - ittttt - lovelove | 1603 | 27_love_cute_absolutely_ittttt |
|
70 |
+
| 28 | mobile - app - digital - options - shopping | 292 | 28_mobile_app_digital_options |
|
71 |
+
| 29 | cardigan - flannel - plaid - tsxccapitalone - cardigans | 554 | 29_cardigan_flannel_plaid_tsxccapitalone |
|
72 |
+
| 30 | presale - event - taylorswift - venue - np | 191 | 30_presale_event_taylorswift_venue |
|
73 |
+
| 31 | donna - pescow - annette - fever - looks | 403 | 31_donna_pescow_annette_fever |
|
74 |
+
| 32 | card - best - great - love - cards | 340 | 32_card_best_great_love |
|
75 |
+
| 33 | flannel - flannnel - scymbags - rsxcapitalone - pumpkinseason | 632 | 33_flannel_flannnel_scymbags_rsxcapitalone |
|
76 |
+
| 34 | car - auto - navigator - cars - buying | 172 | 34_car_auto_navigator_cars |
|
77 |
+
| 35 | πππΊπ - πΊππ½ - πππ - πππ - ππ | 566 | 35_πππΊπ_πΊππ½_πππ_πππ |
|
78 |
+
| 36 | sure - true - correct - yessir - yea | 416 | 36_sure_true_correct_yessir |
|
79 |
+
| 37 | beard - chef - awards - beardfoundation - james | 329 | 37_beard_chef_awards_beardfoundation |
|
80 |
+
| 38 | worst - bank - service - customer - fucking | 223 | 38_worst_bank_service_customer |
|
81 |
+
| 39 | bank - banks - banking - best - chairman | 1098 | 39_bank_banks_banking_best |
|
82 |
+
| 40 | student - unlimited - key - quicksilver - cash | 397 | 40_student_unlimited_key_quicksilver |
|
83 |
+
| 41 | teambradgers - hardwood - winning - head - winners | 343 | 41_teambradgers_hardwood_winning_head |
|
84 |
+
| 42 | giveway - tstheerastour - tsxcapitalone - givesway - givaway | 178 | 42_giveway_tstheerastour_tsxcapitalone_givesway |
|
85 |
+
| 43 | love - awesome - cute - omg - absolutely | 155 | 43_love_awesome_cute_omg |
|
86 |
+
| 44 | postdoctoral - ΞΊΞ±ΞΉ - ππ¨ - ποΏ½οΏ½οΏ½π - Ψ±Ψ³ΩΩ | 386 | 44_postdoctoral_ΞΊΞ±ΞΉ_ππ¨_ππ§π |
|
87 |
+
| 45 | platinum - excluded - cards - credit - secured | 357 | 45_platinum_excluded_cards_credit |
|
88 |
+
| 46 | solving - ai - data - methods - learning | 127 | 46_solving_ai_data_methods |
|
89 |
+
| 47 | dm - sent - haven - gotten - dms | 219 | 47_dm_sent_haven_gotten |
|
90 |
+
| 48 | nice - cool - good - cute - dimples | 289 | 48_nice_cool_good_cute |
|
91 |
+
| 49 | cafΓ©s - branches - offices - closed - holiday | 206 | 49_cafΓ©s_branches_offices_closed |
|
92 |
+
| 50 | gt - page - javier - facebook - sergio | 130 | 50_gt_page_javier_facebook |
|
93 |
+
| 51 | fault - mailbox - buyer - flood - vendors | 191 | 51_fault_mailbox_buyer_flood |
|
94 |
+
| 52 | responsibility - expect - accept - unethical - perjury | 89 | 52_responsibility_expect_accept_unethical |
|
95 |
+
| 53 | holiday - encore - noΓ«l - livestream - songs | 88 | 53_holiday_encore_noΓ«l_livestream |
|
96 |
+
| 54 | bio - webinar - mcws - capitalonecafe - wcwsselfie | 44 | 54_bio_webinar_mcws_capitalonecafe |
|
97 |
+
| 55 | agree - true - haha - ha - right | 565 | 55_agree_true_haha_ha |
|
98 |
+
| 56 | word - code - shib - enter - biiiish | 324 | 56_word_code_shib_enter |
|
99 |
+
| 57 | uber - eats - complimentary - orders - nov | 113 | 57_uber_eats_complimentary_orders |
|
100 |
+
| 58 | bbb - tracker - scams - scam - scamtracker | 46 | 58_bbb_tracker_scams_scam |
|
101 |
+
| 59 | count - days - fucking - bitch - fuckin | 85 | 59_count_days_fucking_bitch |
|
102 |
+
| 60 | tradelines - cpn - repair - removal - inquiries | 89 | 60_tradelines_cpn_repair_removal |
|
103 |
+
| 61 | gas - prices - inflation - cars - electric | 102 | 61_gas_prices_inflation_cars |
|
104 |
+
| 62 | spark - antonelli - preset - cash - cheese | 159 | 62_spark_antonelli_preset_cash |
|
105 |
+
| 63 | waiting - room - queue - open - lounge | 57 | 63_waiting_room_queue_open |
|
106 |
+
| 64 | need - want - got - officce - wish | 455 | 64_need_want_got_officce |
|
107 |
+
| 65 | taher - bapary - abu - wow - baah | 371 | 65_taher_bapary_abu_wow |
|
108 |
+
| 66 | atos - story - cloud - datacenter - upl | 46 | 66_atos_story_cloud_datacenter |
|
109 |
+
| 67 | song - itunes - radio - rainy - bts | 77 | 67_song_itunes_radio_rainy |
|
110 |
+
| 68 | dining - cardholders - reservations - restaurants - rated | 163 | 68_dining_cardholders_reservations_restaurants |
|
111 |
+
| 69 | grant - apply - upfront - federal - government | 69 | 69_grant_apply_upfront_federal |
|
112 |
+
| 70 | scarf - tsgiveaway - towel - tote - bag | 103 | 70_scarf_tsgiveaway_towel_tote |
|
113 |
+
| 71 | annual - fee - fees - loffland - tam | 53 | 71_annual_fee_fees_loffland |
|
114 |
+
| 72 | unsubcribe - mailing - stop - remove - list | 204 | 72_unsubcribe_mailing_stop_remove |
|
115 |
+
| 73 | crooks - money - scumbags - stole - thieves | 106 | 73_crooks_money_scumbags_stole |
|
116 |
+
| 74 | mcws - rebs - omaha - wps - toddy | 633 | 74_mcws_rebs_omaha_wps |
|
117 |
+
| 75 | bejeweled - ok - hi - mm - tay | 105 | 75_bejeweled_ok_hi_mm |
|
118 |
+
| 76 | pov - misclicked - clicked - clicky - pa | 719 | 76_pov_misclicked_clicked_clicky |
|
119 |
+
| 77 | financial - tips - budget - empowerment - healthy | 174 | 77_financial_tips_budget_empowerment |
|
120 |
+
| 78 | wynn - match - brady - hole - las | 379 | 78_wynn_match_brady_hole |
|
121 |
+
| 79 | upgrade - upgrades - upgraded - update - seats | 70 | 79_upgrade_upgrades_upgraded_update |
|
122 |
+
| 80 | step - tapn - wit - walking - method | 142 | 80_step_tapn_wit_walking |
|
123 |
+
| 81 | facilitate - form - cybersuppospy - communicate - following | 120 | 81_facilitate_form_cybersuppospy_communicate |
|
124 |
+
| 82 | debt - credit - need - card - dm | 46 | 82_debt_credit_need_card |
|
125 |
+
| 83 | press - interactive - seat - conference - hot | 375 | 83_press_interactive_seat_conference |
|
126 |
+
| 84 | minority - jackie - scholarship - nation - donating | 31 | 84_minority_jackie_scholarship_nation |
|
127 |
+
| 85 | chefs - chef - exclusive - dining - cardholders | 39 | 85_chefs_chef_exclusive_dining |
|
128 |
+
| 86 | flannel - cardigan - scarf - jk - code | 30 | 86_flannel_cardigan_scarf_jk |
|
129 |
+
| 87 | sell - sold - sellout - selling - tim | 91 | 87_sell_sold_sellout_selling |
|
130 |
+
| 88 | movie - saw - watch - watching - video | 90 | 88_movie_saw_watch_watching |
|
131 |
+
| 89 | denied - approved - applied - pre - tried | 411 | 89_denied_approved_applied_pre |
|
132 |
+
| 90 | balali - dizabali - manager - blame - changing | 188 | 90_balali_dizabali_manager_blame |
|
133 |
+
| 91 | office - direct - contact - don - erica | 24 | 91_office_direct_contact_don |
|
134 |
+
| 92 | stimulus - latest - mon - dates - track | 60 | 92_stimulus_latest_mon_dates |
|
135 |
+
| 93 | itbot - cash - gyvi - creditcard - best | 23 | 93_itbot_cash_gyvi_creditcard |
|
136 |
+
| 94 | pakistan - donate - relief - flood - activities | 199 | 94_pakistan_donate_relief_flood |
|
137 |
+
| 95 | lottery - winner - jackpot - fan - million | 27 | 95_lottery_winner_jackpot_fan |
|
138 |
+
| 96 | payments - sending - email - payment - suppo | 77 | 96_payments_sending_email_payment |
|
139 |
+
| 97 | cardholders - star - mlb - ultimate - allstarweek | 127 | 97_cardholders_star_mlb_ultimate |
|
140 |
+
| 98 | reds - disparage - toss - stats - count | 57 | 98_reds_disparage_toss_stats |
|
141 |
+
|
142 |
+
</details>
|
143 |
+
|
144 |
+
## Training hyperparameters
|
145 |
+
|
146 |
+
* calculate_probabilities: False
|
147 |
+
* language: None
|
148 |
+
* low_memory: False
|
149 |
+
* min_topic_size: 10
|
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.40.0
|
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": 10,
|
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:a858f6d0330b876d25655865253b3fba81a65aa5884dbd22fa8a6263256498ec
|
3 |
+
size 3265040
|
ctfidf_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
topic_embeddings.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae1344ab9fe9bf1c0601f8d35ca56a12476bbc18704810861638a5886467cf90
|
3 |
+
size 153688
|
topics.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|