hts98 commited on
Commit
7f576cf
1 Parent(s): 543c8ab

Add BERTopic model

Browse files
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # bertopic_kmean-20topics
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("hts98/bertopic_kmean-20topics")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 20
34
+ * Number of training documents: 529579
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 | hanoi - quarter - old - bay - lake | 70447 | 0_hanoi_quarter_old_bay |
42
+ | 1 | vietnam - vietnamese - best - stayed - mekong | 61694 | 1_vietnam_vietnamese_best_stayed |
43
+ | 2 | location - hotel - good - old - breakfast | 50809 | 2_location_hotel_good_old |
44
+ | 3 | good - clean - location - helpful - friendly | 44027 | 3_good_clean_location_helpful |
45
+ | 4 | pool - beach - view - massage - spa | 43959 | 4_pool_beach_view_massage |
46
+ | 5 | room - told - said - asked - shower | 40332 | 5_room_told_said_asked |
47
+ | 6 | thank - service - staff - ms - helpful | 36010 | 6_thank_service_staff_ms |
48
+ | 7 | hoi - homestay - town - bikes - free | 28816 | 7_hoi_homestay_town_bikes |
49
+ | 8 | saigon - minh - chi - ho - city | 28655 | 8_saigon_minh_chi_ho |
50
+ | 9 | resort - villa - beach - villas - island | 20536 | 9_resort_villa_beach_villas |
51
+ | 10 | bikes - beach - town - bike - free | 19495 | 10_bikes_beach_town_bike |
52
+ | 11 | hostel - dorm - dalat - dorms - beds | 17662 | 11_hostel_dorm_dalat_dorms |
53
+ | 12 | bay - halong - ha - cruise - kiem | 12629 | 12_bay_halong_ha_cruise |
54
+ | 13 | nang - da - danang - naman - dragon | 12005 | 13_nang_da_danang_naman |
55
+ | 14 | phu - quoc - resort - mui - ne | 9228 | 14_phu_quoc_resort_mui |
56
+ | 15 | hcmc - hcm - tau - vung - silverland | 8368 | 15_hcmc_hcm_tau_vung |
57
+ | 16 | phong - ninh - binh - nha - coc | 8121 | 16_phong_ninh_binh_nha |
58
+ | 17 | hue - citadel - imperial - jade - serene | 8072 | 17_hue_citadel_imperial_jade |
59
+ | 18 | nha - trang - sheraton - beach - russian | 6163 | 18_nha_trang_sheraton_beach |
60
+ | 19 | la - siesta - residencia - trendy - selva | 2551 | 19_la_siesta_residencia_trendy |
61
+
62
+ </details>
63
+
64
+ ## Training hyperparameters
65
+
66
+ * calculate_probabilities: False
67
+ * language: None
68
+ * low_memory: False
69
+ * min_topic_size: 10
70
+ * n_gram_range: (1, 1)
71
+ * nr_topics: None
72
+ * seed_topic_list: None
73
+ * top_n_words: 15
74
+ * verbose: True
75
+ * zeroshot_min_similarity: 0.7
76
+ * zeroshot_topic_list: None
77
+
78
+ ## Framework versions
79
+
80
+ * Numpy: 1.24.3
81
+ * HDBSCAN: 0.8.33
82
+ * UMAP: 0.5.5
83
+ * Pandas: 2.0.3
84
+ * Scikit-Learn: 1.2.2
85
+ * Sentence-transformers: 2.2.2
86
+ * Transformers: 4.35.2
87
+ * Numba: 0.57.1
88
+ * Plotly: 5.16.1
89
+ * Python: 3.10.12
config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": null,
11
+ "seed_topic_list": null,
12
+ "top_n_words": 15,
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:08d0081be03d6dd97c6afbc94e002fb6e4ef65170bf0b566bb7fc57fc958f77e
3
+ size 6891752
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:31f27b816e565a38b1a9e1c66b9936819be4bf1cad72f284087c35f7193c700c
3
+ size 30808
topics.json ADDED
The diff for this file is too large to render. See raw diff