wongzien2000 commited on
Commit
89389f2
·
verified ·
1 Parent(s): c5e8fe2

Add BERTopic model

Browse files
Files changed (6) hide show
  1. README.md +95 -0
  2. config.json +17 -0
  3. ctfidf.bin +3 -0
  4. ctfidf_config.json +0 -0
  5. topic_embeddings.bin +3 -0
  6. topics.json +0 -0
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # model_jeff
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("wongzien2000/model_jeff")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 26
34
+ * Number of training documents: 36727
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 | jeff - just - great - love - thank | 256 | -1_jeff_just_great_love |
42
+ | 0 | protein - fat - weight - eat - calories | 8978 | 0_protein_fat_weight_eat |
43
+ | 1 | sets - reps - exercise - week - sets reps | 9577 | 1_sets_reps_exercise_week |
44
+ | 2 | content - great - thank - science - informative | 5017 | 2_content_great_thank_science |
45
+ | 3 | breaking bad - breaking - bad - better - better breaking | 1473 | 3_breaking bad_breaking_bad_better |
46
+ | 4 | level - ready - ready level - level ready - level level | 1425 | 4_level_ready_ready level_level ready |
47
+ | 5 | bench - press - chest - bench press - grip | 1234 | 5_bench_press_chest_bench press |
48
+ | 6 | thank - great - man - amazing - thanks | 951 | 6_thank_great_man_amazing |
49
+ | 7 | fitness - videos - science - thank - jeff | 818 | 7_fitness_videos_science_thank |
50
+ | 8 | pro - elite - average - lost - level | 741 | 8_pro_elite_average_lost |
51
+ | 9 | app - macros - macrofactor - macro - fat | 641 | 9_app_macros_macrofactor_macro |
52
+ | 10 | jeff - jeff jeff - bro jeff - bro - love jeff | 578 | 10_jeff_jeff jeff_bro jeff_bro |
53
+ | 11 | videos - love - love videos - youtube - quality | 524 | 11_videos_love_love videos_youtube |
54
+ | 12 | kiwi - kiwi juice - juice - snort - snorting | 468 | 12_kiwi_kiwi juice_juice_snort |
55
+ | 13 | steroids - testosterone - steroid - anabolic - use steroids | 440 | 13_steroids_testosterone_steroid_anabolic |
56
+ | 14 | book - program - bought - books - ordered | 395 | 14_book_program_bought_books |
57
+ | 15 | roids - women - habits - atomic - atomic habits | 393 | 15_roids_women_habits_atomic |
58
+ | 16 | tall - short - look - height - dude | 382 | 16_tall_short_look_height |
59
+ | 17 | mask - wearing - wearing mask - hoodie - shirt | 340 | 17_mask_wearing_wearing mask_hoodie |
60
+ | 18 | shapiro - ben - ben shapiro - jacked - nerd | 336 | 18_shapiro_ben_ben shapiro_jacked |
61
+ | 19 | mom - chili - macros - recipe - plastic | 314 | 19_mom_chili_macros_recipe |
62
+ | 20 | jeff - thanks jeff - thanks - thank jeff - thank | 308 | 20_jeff_thanks jeff_thanks_thank jeff |
63
+ | 21 | sleep - hours - sleeping - work - job | 301 | 21_sleep_hours_sleeping_work |
64
+ | 22 | steph - bro steph - ber - bro - ber ber | 288 | 22_steph_bro steph_ber_bro |
65
+ | 23 | voice - sound - match - voice doesn - sounds | 282 | 23_voice_sound_match_voice doesn |
66
+ | 24 | thumbnail - picture - look - pic - photo | 267 | 24_thumbnail_picture_look_pic |
67
+
68
+ </details>
69
+
70
+ ## Training hyperparameters
71
+
72
+ * calculate_probabilities: True
73
+ * language: None
74
+ * low_memory: False
75
+ * min_topic_size: 10
76
+ * n_gram_range: (1, 1)
77
+ * nr_topics: None
78
+ * seed_topic_list: None
79
+ * top_n_words: 10
80
+ * verbose: True
81
+ * zeroshot_min_similarity: 0.7
82
+ * zeroshot_topic_list: None
83
+
84
+ ## Framework versions
85
+
86
+ * Numpy: 2.0.2
87
+ * HDBSCAN: 0.8.40
88
+ * UMAP: 0.5.7
89
+ * Pandas: 2.2.2
90
+ * Scikit-Learn: 1.6.1
91
+ * Sentence-transformers: 3.4.1
92
+ * Transformers: 4.50.2
93
+ * Numba: 0.60.0
94
+ * Plotly: 5.24.1
95
+ * Python: 3.11.11
config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "calculate_probabilities": true,
3
+ "language": null,
4
+ "low_memory": false,
5
+ "min_topic_size": 10,
6
+ "n_gram_range": [
7
+ 1,
8
+ 1
9
+ ],
10
+ "nr_topics": null,
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": "sentence-transformers/all-MiniLM-L6-v2"
17
+ }
ctfidf.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebbf2662466ba770f02759bebdbb85a8e20ae4c6e93ed9ea952d6193a8ad0469
3
+ size 6934211
ctfidf_config.json ADDED
The diff for this file is too large to render. See raw diff
 
topic_embeddings.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a54f12f599a7f77137080f3c76666f71d653eac2af0149a442abea9e687c27d6
3
+ size 41225
topics.json ADDED
The diff for this file is too large to render. See raw diff