davanstrien HF staff commited on
Commit
1097cdb
1 Parent(s): 393d891

Add BERTopic model

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ ---
7
+
8
+ # imdb_bertopic_ten_topics
9
+
10
+ This is a [BERTopic](https://github.com/MaartenGr/BERTopic) model.
11
+ BERTopic is a flexible and modular topic modeling framework that allows for the generation of easily interpretable topics from large datasets.
12
+
13
+ ## Usage
14
+
15
+ To use this model, please install BERTopic:
16
+
17
+ ```
18
+ pip install -U bertopic
19
+ ```
20
+
21
+ You can use the model as follows:
22
+
23
+ ```python
24
+ from bertopic import BERTopic
25
+ topic_model = BERTopic.load("davanstrien/imdb_bertopic_ten_topics")
26
+
27
+ topic_model.get_topic_info()
28
+ ```
29
+
30
+ ## Topic overview
31
+
32
+ * Number of topics: 10
33
+ * Number of training documents: 103062
34
+
35
+ <details>
36
+ <summary>Click here for an overview of all topics.</summary>
37
+
38
+ | Topic ID | Topic Keywords | Topic Frequency | Label |
39
+ |----------|----------------|-----------------|-------|
40
+ | -1 | film - movie - movies - character - characters | 44 | -1_film_movie_movies_character |
41
+ | 0 | film - movie - films - movies - too | 25087 | 0_film_movie_films_movies |
42
+ | 1 | episodes - shows - watching - tv - episode | 20955 | 1_episodes_shows_watching_tv |
43
+ | 2 | films - film - movies - godzilla - movie | 2037 | 2_films_film_movies_godzilla |
44
+ | 3 | cinderella - disney - cartoon - animation - cartoons | 895 | 3_cinderella_disney_cartoon_animation |
45
+ | 4 | gameplay - games - game - adventure - starcraft | 465 | 4_gameplay_games_game_adventure |
46
+ | 5 | holmes - sherlock - watson - doyle - conan | 228 | 5_holmes_sherlock_watson_doyle |
47
+ | 6 | panther - film - films - clouseau - movies | 184 | 6_panther_film_films_clouseau |
48
+ | 7 | metallica - metal - genres - genre - headbanger | 55 | 7_metallica_metal_genres_genre |
49
+ | 8 | che - ernesto - castro - biopic - film | 50 | 8_che_ernesto_castro_biopic |
50
+
51
+ </details>
52
+
53
+ ## Training hyperparameters
54
+
55
+ * calculate_probabilities: False
56
+ * language: None
57
+ * low_memory: False
58
+ * min_topic_size: 40
59
+ * n_gram_range: (1, 1)
60
+ * nr_topics: 10
61
+ * seed_topic_list: None
62
+ * top_n_words: 10
63
+ * verbose: False
64
+
65
+ ## Framework versions
66
+
67
+ * Numpy: 1.22.4
68
+ * HDBSCAN: 0.8.29
69
+ * UMAP: 0.5.3
70
+ * Pandas: 1.5.3
71
+ * Scikit-Learn: 1.2.2
72
+ * Sentence-transformers: 2.2.2
73
+ * Transformers: 4.29.2
74
+ * Numba: 0.56.4
75
+ * Plotly: 5.13.1
76
+ * Python: 3.10.11
config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "calculate_probabilities": false,
3
+ "language": null,
4
+ "low_memory": false,
5
+ "min_topic_size": 40,
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": false
14
+ }
ctfidf.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d92dc32ba216c6aa47eebab1fc654932d2130f8a0548148a09af7b538c0edf7
3
+ size 3359688
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:2aa4550927c19c9bd54ca7d8a9d3000fa9318d4488065925dba96e5e3e2dabc4
3
+ size 15448
topics.json ADDED
The diff for this file is too large to render. See raw diff