Trubnik1967 commited on
Commit
b7f6bfa
·
verified ·
1 Parent(s): fdb16d4

Add BERTopic model

Browse files
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # kmeans_15
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("Trubnik1967/kmeans_15")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 6
34
+ * Number of training documents: 29572
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 | вернуть - деньга - товар - спор - продавец | 11587 | 0_вернуть_деньга_товар_спор |
42
+ | 1 | размер - платье - маленький - соответствовать - заказать | 9416 | 1_размер_платье_маленький_соответствовать |
43
+ | 2 | ткань - нитка - шов - торчать - качество | 5653 | 2_ткань_нитка_шов_торчать |
44
+ | 3 | цвет - качество - картинка - фото - соответствовать | 2401 | 3_цвет_качество_картинка_фото |
45
+ | 4 | прийти - товар - получить - заказ - посылка | 492 | 4_прийти_товар_получить_заказ |
46
+ | 5 | плохо - плохой - всё - маленький - | 23 | 5_плохо_плохой_всё_маленький |
47
+
48
+ </details>
49
+
50
+ ## Training hyperparameters
51
+
52
+ * calculate_probabilities: True
53
+ * language: None
54
+ * low_memory: False
55
+ * min_topic_size: 100
56
+ * n_gram_range: (1, 1)
57
+ * nr_topics: 15
58
+ * seed_topic_list: None
59
+ * top_n_words: 10
60
+ * verbose: True
61
+ * zeroshot_min_similarity: 0.7
62
+ * zeroshot_topic_list: None
63
+
64
+ ## Framework versions
65
+
66
+ * Numpy: 1.25.2
67
+ * HDBSCAN: 0.8.33
68
+ * UMAP: 0.5.5
69
+ * Pandas: 1.5.3
70
+ * Scikit-Learn: 1.2.2
71
+ * Sentence-transformers: 2.5.1
72
+ * Transformers: 4.38.2
73
+ * Numba: 0.58.1
74
+ * Plotly: 5.15.0
75
+ * Python: 3.10.12
config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "calculate_probabilities": true,
3
+ "language": null,
4
+ "low_memory": false,
5
+ "min_topic_size": 100,
6
+ "n_gram_range": [
7
+ 1,
8
+ 1
9
+ ],
10
+ "nr_topics": 15,
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
+ }
ctfidf.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83eb546f908cf2f9fc05dd244fdd7f2ad8b96ea4fb9b71509bd8879adcd013fe
3
+ size 465000
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:5de39a96173cc3fc8a11b6b34ea3d84e133d937502e3f5eafeed7bc8b8f936fd
3
+ size 18520
topics.json ADDED
The diff for this file is too large to render. See raw diff