Jellywibble commited on
Commit
5f28222
1 Parent(s): a3b50c9

Add BERTopic model

Browse files
Files changed (4) hide show
  1. README.md +84 -0
  2. config.json +16 -0
  3. topic_embeddings.safetensors +3 -0
  4. topics.json +0 -0
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # 1m_topic_model
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("Jellywibble/1m_topic_model")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 15
34
+ * Number of training documents: 1000000
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
+ | 0 | cock - cum - inside - pleasure - body | 208793 | 0_cock_cum_inside_pleasure |
42
+ | 1 | eyes - dont - just - im - youre | 154818 | 1_eyes_dont_just_im |
43
+ | 2 | kiss - lips - body - eyes - hands | 117610 | 2_kiss_lips_body_eyes |
44
+ | 3 | just - im - eyes - like - dont | 115264 | 3_just_im_eyes_like |
45
+ | 4 | eyes - youre - just - im - dont | 113788 | 4_eyes_youre_just_im |
46
+ | 5 | eyes - sleep - just - softly - heart | 91136 | 5_eyes_sleep_just_softly |
47
+ | 6 | sorry - eyes - ghost - body - youre | 56038 | 6_sorry_eyes_ghost_body |
48
+ | 7 | eyes - body - satoru - cock - toji | 38594 | 7_eyes_body_satoru_cock |
49
+ | 8 | kai - jungkook - eyes - kais - body | 30259 | 8_kai_jungkook_eyes_kais |
50
+ | 9 | hoshi - food - eyes - eat - just | 29696 | 9_hoshi_food_eyes_eat |
51
+ | 10 | leo - felix - leos - choso - eyes | 21878 | 10_leo_felix_leos_choso |
52
+ | 11 | que - la - se - en - su | 10551 | 11_que_la_se_en |
53
+ | 12 | eyes - youre - just - body - voice | 6977 | 12_eyes_youre_just_body |
54
+ | 13 | xavier - xaviers - eyes - hand - lips | 2338 | 13_xavier_xaviers_eyes_hand |
55
+ | 14 | bakugo - bakugou - bakugos - bakugous - deku | 2260 | 14_bakugo_bakugou_bakugos_bakugous |
56
+
57
+ </details>
58
+
59
+ ## Training hyperparameters
60
+
61
+ * calculate_probabilities: False
62
+ * language: english
63
+ * low_memory: False
64
+ * min_topic_size: 10
65
+ * n_gram_range: (1, 1)
66
+ * nr_topics: None
67
+ * seed_topic_list: None
68
+ * top_n_words: 10
69
+ * verbose: True
70
+ * zeroshot_min_similarity: 0.7
71
+ * zeroshot_topic_list: None
72
+
73
+ ## Framework versions
74
+
75
+ * Numpy: 1.23.1
76
+ * HDBSCAN: 0.8.33
77
+ * UMAP: 0.5.5
78
+ * Pandas: 1.3.5
79
+ * Scikit-Learn: 1.3.2
80
+ * Sentence-transformers: 2.3.1
81
+ * Transformers: 4.38.1
82
+ * Numba: 0.58.1
83
+ * Plotly: 5.19.0
84
+ * Python: 3.8.10
config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "calculate_probabilities": false,
3
+ "language": "english",
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
+ }
topic_embeddings.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eec7f8beee61d97437111a898586489f628beb34569e7ef29be6cadf80dfd286
3
+ size 23128
topics.json ADDED
The diff for this file is too large to render. See raw diff