davanstrien HF staff commited on
Commit
d45c8de
1 Parent(s): 010c3c3

Add BERTopic model

Browse files
Files changed (4) hide show
  1. README.md +142 -0
  2. config.json +15 -0
  3. topic_embeddings.safetensors +3 -0
  4. topics.json +0 -0
README.md ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # chat_topics
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("davanstrien/chat_topics")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 75
34
+ * Number of training documents: 63530
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 | provide - using - information - sure - help | 26 | -1_provide_using_information_sure |
42
+ | 0 | openai - ai - chatgpt - assistant - language | 7837 | Generative AI |
43
+ | 1 | anytime - welcome - assistance - helpful - thank | 1342 | 1_anytime_welcome_assistance_helpful |
44
+ | 2 | quantum - particle - physics - particles - relativity | 778 | Physics |
45
+ | 3 | story - lived - life - novel - felt | 569 | 3_story_lived_life_novel |
46
+ | 4 | letter - sincerely - regards - email - dear | 516 | 4_letter_sincerely_regards_email |
47
+ | 5 | rust - haskell - programming - java - languages | 504 | programming |
48
+ | 6 | css - html - style - div - js | 494 | web programming |
49
+ | 7 | linux - ubuntu - debian - fedora - install | 440 | 7_linux_ubuntu_debian_fedora |
50
+ | 8 | recipe - bake - ingredients - baking - dough | 425 | 8_recipe_bake_ingredients_baking |
51
+ | 9 | websocket - json - socket - api - discord | 425 | 9_websocket_json_socket_api |
52
+ | 10 | communism - capitalism - marx - economic - economy | 424 | 10_communism_capitalism_marx_economic |
53
+ | 11 | dog - pet - breed - breeds - pets | 408 | 11_dog_pet_breed_breeds |
54
+ | 12 | philosophy - theological - philosophical - beliefs - consciousness | 394 | 12_philosophy_theological_philosophical_beliefs |
55
+ | 13 | git - github - repository - software - commit | 381 | 13_git_github_repository_software |
56
+ | 14 | music - songs - musical - lyrics - song | 370 | 14_music_songs_musical_lyrics |
57
+ | 15 | devops - development - developers - industry - develop | 323 | 15_devops_development_developers_industry |
58
+ | 16 | pythagorean - hypotenuse - triangle - math - sqrt | 302 | 16_pythagorean_hypotenuse_triangle_math |
59
+ | 17 | eu - europe - economy - economic - war | 291 | 17_eu_europe_economy_economic |
60
+ | 18 | sleep - asleep - bedtime - procrastination - depression | 280 | 18_sleep_asleep_bedtime_procrastination |
61
+ | 19 | kramer - seinfeld - jerry - cafe - elaine | 279 | 19_kramer_seinfeld_jerry_cafe |
62
+ | 20 | printing - prints - printer - print - printers | 276 | 20_printing_prints_printer_print |
63
+ | 21 | influenza - flu - panic - symptoms - medical | 251 | 21_influenza_flu_panic_symptoms |
64
+ | 22 | chess - chessboard - practice - strategy - learn | 242 | 22_chess_chessboard_practice_strategy |
65
+ | 23 | algorithm - primes - array - integers - python | 240 | 23_algorithm_primes_array_integers |
66
+ | 24 | youtube - viewers - media - google - streaming | 240 | 24_youtube_viewers_media_google |
67
+ | 25 | poison - chemicals - powder - turpentine - smoke | 226 | 25_poison_chemicals_powder_turpentine |
68
+ | 26 | monday - sunday - count_weekend_days - calendar - dates | 216 | 26_monday_sunday_count_weekend_days_calendar |
69
+ | 27 | colors - colour - color - pigments - blue | 208 | 27_colors_colour_color_pigments |
70
+ | 28 | roman - attila - rome - empire - warfare | 205 | 28_roman_attila_rome_empire |
71
+ | 29 | investing - investments - investment - stocks - financial | 204 | 29_investing_investments_investment_stocks |
72
+ | 30 | vocabulary - wordle - words - scrabble - word | 201 | 30_vocabulary_wordle_words_scrabble |
73
+ | 31 | planets - sun - earth - planet - pluto | 198 | 31_planets_sun_earth_planet |
74
+ | 32 | renewable - solar - electricity - energy - electrical | 190 | 32_renewable_solar_electricity_energy |
75
+ | 33 | pygame - ball_radius - draw - circle - canvas | 181 | 33_pygame_ball_radius_draw_circle |
76
+ | 34 | fishing - fish - boat - hiking - camping | 176 | 34_fishing_fish_boat_hiking |
77
+ | 35 | gpus - gpu - motherboard - cpu - hardware | 162 | 35_gpus_gpu_motherboard_cpu |
78
+ | 36 | hvac - remodeling - energy - kwh - housing | 159 | 36_hvac_remodeling_energy_kwh |
79
+ | 37 | database - graphql - databases - postgresql - sql | 159 | 37_database_graphql_databases_postgresql |
80
+ | 38 | información - significado - cómo - como - sistemas | 158 | 38_información_significado_cómo_como |
81
+ | 39 | motherboard - pcie - gpu - bios - computer | 153 | 39_motherboard_pcie_gpu_bios |
82
+ | 40 | crops - produce - planting - peppers - plants | 148 | 40_crops_produce_planting_peppers |
83
+ | 41 | paintings - art - modernist - artists - modern | 148 | 41_paintings_art_modernist_artists |
84
+ | 42 | workout - exercises - dumbbells - dumbbell - exercise | 147 | 42_workout_exercises_dumbbells_dumbbell |
85
+ | 43 | climate - warming - pollution - environmental - emissions | 142 | 43_climate_warming_pollution_environmental |
86
+ | 44 | coffee - espresso - brewing - tea - beans | 137 | 44_coffee_espresso_brewing_tea |
87
+ | 45 | velocity - drag - acceleration - density - formula | 132 | 45_velocity_drag_acceleration_density |
88
+ | 46 | woodchuck - woodchucks - units - kilogram - kilograms | 130 | 46_woodchuck_woodchucks_units_kilogram |
89
+ | 47 | ascii - glyphs - hiragana - art - font | 129 | 47_ascii_glyphs_hiragana_art |
90
+ | 48 | guitars - guitar - strings - guitarists - instrument | 127 | 48_guitars_guitar_strings_guitarists |
91
+ | 49 | tallest - buildings - building - burj - khalifa | 114 | 49_tallest_buildings_building_burj |
92
+ | 50 | flat - earth - curvature - spherical - tectonic | 111 | 50_flat_earth_curvature_spherical |
93
+ | 51 | essay - awareness - understanding - being - be | 102 | 51_essay_awareness_understanding_being |
94
+ | 52 | portals - ender - portal - obsidian - netherite | 102 | 52_portals_ender_portal_obsidian |
95
+ | 53 | android - apple - phones - devices - vehicles | 101 | 53_android_apple_phones_devices |
96
+ | 54 | fasting - dietary - diet - eating - metabolic | 101 | 54_fasting_dietary_diet_eating |
97
+ | 55 | meditation - relief - pain - health - nociception | 99 | 55_meditation_relief_pain_health |
98
+ | 56 | weather - forecast - forecasts - raining - precipitation | 95 | 56_weather_forecast_forecasts_raining |
99
+ | 57 | president - presidents - presidency - constitution - biden | 94 | 57_president_presidents_presidency_constitution |
100
+ | 58 | no - nope - yes - not - maybe | 94 | 58_no_nope_yes_not |
101
+ | 59 | peregrine - airspeed - falcon - speed - bird | 90 | 59_peregrine_airspeed_falcon_speed |
102
+ | 60 | crontab - cron - myscript - script - bash | 83 | 60_crontab_cron_myscript_script |
103
+ | 61 | youtuber - streamer - ceo - musk - founder | 83 | 61_youtuber_streamer_ceo_musk |
104
+ | 62 | layovers - flights - circumnavigate - layover - travel | 83 | 62_layovers_flights_circumnavigate_layover |
105
+ | 63 | keyboards - keyboard - switches - qwerty - types | 83 | 63_keyboards_keyboard_switches_qwerty |
106
+ | 64 | file_path_in_dir1 - file_path1 - csv_file - file_path_in_dir2 - file_path2 | 80 | 64_file_path_in_dir1_file_path1_csv_file_file_path_in_dir2 |
107
+ | 65 | pele - maradona - lebron - ronaldo - nba | 76 | 65_pele_maradona_lebron_ronaldo |
108
+ | 66 | alopecia - hairstyles - hairstyle - hair - scalp | 66 | 66_alopecia_hairstyles_hairstyle_hair |
109
+ | 67 | nginx - docker - kubernetes - proxy_pass - nodeport | 65 | 67_nginx_docker_kubernetes_proxy_pass |
110
+ | 68 | directories - directory - sudo - filesystem - folders | 62 | 68_directories_directory_sudo_filesystem |
111
+ | 69 | gps - map - geocaching - maps - armenia | 52 | 69_gps_map_geocaching_maps |
112
+ | 70 | meiosis - mitosis - fertilization - reproduction - ovulation | 51 | 70_meiosis_mitosis_fertilization_reproduction |
113
+ | 71 | colleges - admissions - universities - campus - university | 43 | 71_colleges_admissions_universities_campus |
114
+ | 72 | unicorns - unicorn - pony - ponies - mythical | 32 | 72_unicorns_unicorn_pony_ponies |
115
+ | 73 | superpowers - abilities - superhero - superhuman - powers | 28 | 73_superpowers_abilities_superhero_superhuman |
116
+
117
+ </details>
118
+
119
+ ## Training hyperparameters
120
+
121
+ * calculate_probabilities: False
122
+ * language: None
123
+ * low_memory: False
124
+ * min_topic_size: 20
125
+ * n_gram_range: (1, 1)
126
+ * nr_topics: 75
127
+ * seed_topic_list: None
128
+ * top_n_words: 10
129
+ * verbose: True
130
+
131
+ ## Framework versions
132
+
133
+ * Numpy: 1.22.4
134
+ * HDBSCAN: 0.8.29
135
+ * UMAP: 0.5.3
136
+ * Pandas: 1.5.3
137
+ * Scikit-Learn: 1.2.2
138
+ * Sentence-transformers: 2.2.2
139
+ * Transformers: 4.29.2
140
+ * Numba: 0.56.4
141
+ * Plotly: 5.13.1
142
+ * Python: 3.10.11
config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "calculate_probabilities": false,
3
+ "language": null,
4
+ "low_memory": false,
5
+ "min_topic_size": 20,
6
+ "n_gram_range": [
7
+ 1,
8
+ 1
9
+ ],
10
+ "nr_topics": 75,
11
+ "seed_topic_list": null,
12
+ "top_n_words": 10,
13
+ "verbose": true,
14
+ "embedding_model": "all-mpnet-base-v2"
15
+ }
topic_embeddings.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:145a4c90172fbba7ae8360b2e9b51f4c499e2d0e7c3687631487a16f624cd718
3
+ size 230488
topics.json ADDED
The diff for this file is too large to render. See raw diff