Thang203 commited on
Commit
e7ab85c
·
verified ·
1 Parent(s): 64da9d6

Add BERTopic model

Browse files
Files changed (6) hide show
  1. README.md +79 -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,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # general-mar11Top10
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("Thang203/general-mar11Top10")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 10
34
+ * Number of training documents: 12146
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 | models - language - llms - large - language models | 11 | -1_models_language_llms_large |
42
+ | 0 | models - language - llms - large - model | 3795 | 0_models_language_llms_large |
43
+ | 1 | models - language - llms - detection - language models | 6668 | 1_models_language_llms_detection |
44
+ | 2 | ai - chatgpt - education - students - language | 889 | 2_ai_chatgpt_education_students |
45
+ | 3 | protein - molecular - materials - chemical - drug | 438 | 3_protein_molecular_materials_chemical |
46
+ | 4 | learning - reinforcement learning - reinforcement - policy - rl | 103 | 4_learning_reinforcement learning_reinforcement_policy |
47
+ | 5 | math - mathematical - reasoning - problems - models | 100 | 5_math_mathematical_reasoning_problems |
48
+ | 6 | style - poetry - style transfer - transfer - poems | 91 | 6_style_poetry_style transfer_transfer |
49
+ | 7 | regression - mathbb - bf - softmax - matrix | 37 | 7_regression_mathbb_bf_softmax |
50
+ | 8 | recipes - recipe - food - cooking - recipe generation | 14 | 8_recipes_recipe_food_cooking |
51
+
52
+ </details>
53
+
54
+ ## Training hyperparameters
55
+
56
+ * calculate_probabilities: False
57
+ * language: None
58
+ * low_memory: False
59
+ * min_topic_size: 10
60
+ * n_gram_range: (1, 1)
61
+ * nr_topics: 10
62
+ * seed_topic_list: None
63
+ * top_n_words: 10
64
+ * verbose: True
65
+ * zeroshot_min_similarity: 0.7
66
+ * zeroshot_topic_list: None
67
+
68
+ ## Framework versions
69
+
70
+ * Numpy: 1.25.2
71
+ * HDBSCAN: 0.8.33
72
+ * UMAP: 0.5.5
73
+ * Pandas: 1.5.3
74
+ * Scikit-Learn: 1.2.2
75
+ * Sentence-transformers: 2.6.1
76
+ * Transformers: 4.38.2
77
+ * Numba: 0.58.1
78
+ * Plotly: 5.15.0
79
+ * Python: 3.10.12
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": 10,
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:4fb67ca2531e32339510004200702231abaf1d1814f650352bdf116fd61b445a
3
+ size 6271619
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:08f79373953c8dc63e119196be92db88da17e1754cfc4d41462af14456911e6d
3
+ size 16649
topics.json ADDED
The diff for this file is too large to render. See raw diff