rociortizb commited on
Commit
ec93280
·
1 Parent(s): 12073ee

Add BERTopic model

Browse files
README.md ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # predict_rugby
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("rociortizb/predict_rugby")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 40
34
+ * Number of training documents: 27774
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 | blacks - new - new zealand - zealand - hurricanes | 1556 | 0_blacks_new_new zealand_zealand |
42
+ | 1 | springboks - south - africa - south africa - erasmus | 1297 | 1_springboks_south_africa_south africa |
43
+ | 2 | springbok - springboks - year - players - world | 1205 | 2_springbok_springboks_year_players |
44
+ | 3 | stormers - lions - van - said - team | 1163 | 3_stormers_lions_van_said |
45
+ | 4 | cheetahs - van - griquas - pumas - province | 1149 | 4_cheetahs_van_griquas_pumas |
46
+ | 5 | sevens - series - fiji - blitzboks - pool | 994 | 5_sevens_series_fiji_blitzboks |
47
+ | 6 | brumbies - reds - rebels - rugby - super | 953 | 6_brumbies_reds_rebels_rugby |
48
+ | 7 | premiership - tom - exeter - wasps - saracens | 928 | 7_premiership_tom_exeter_wasps |
49
+ | 8 | ireland - sexton - schmidt - irish - leinster | 911 | 8_ireland_sexton_schmidt_irish |
50
+ | 9 | france - french - racing - year - club | 904 | 9_france_french_racing_year |
51
+ | 10 | try - leinster - minutes - munster - penalty | 876 | 10_try_leinster_minutes_munster |
52
+ | 11 | stormers - lions - south - game - team | 870 | 11_stormers_lions_south_game |
53
+ | 12 | sharks - du - preez - du preez - bosch | 851 | 12_sharks_du_preez_du preez |
54
+ | 13 | wallabies - australia - folau - rugby - said | 837 | 13_wallabies_australia_folau_rugby |
55
+ | 14 | england - jones - harlequins - squad - george | 807 | 14_england_jones_harlequins_squad |
56
+ | 15 | england - jones - world - world cup - wales | 790 | 15_england_jones_world_world cup |
57
+ | 16 | crusaders - highlanders - hurricanes - blues - chiefs | 769 | 16_crusaders_highlanders_hurricanes_blues |
58
+ | 17 | italy - france - england - ireland - scotland | 763 | 17_italy_france_england_ireland |
59
+ | 18 | wallabies - australia - cheika - said - blacks | 736 | 18_wallabies_australia_cheika_said |
60
+ | 19 | disciplinary - committee - foul play - foul - player | 722 | 19_disciplinary_committee_foul play_foul |
61
+ | 20 | clermont - stade - montpellier - toulon - toulouse | 688 | 20_clermont_stade_montpellier_toulon |
62
+ | 21 | blacks - new - zealand - new zealand - foster | 673 | 21_blacks_new_zealand_new zealand |
63
+ | 22 | wales - davies - ospreys - scarlets - cardiff | 666 | 22_wales_davies_ospreys_scarlets |
64
+ | 23 | bulls - van - stormers - lions - sharks | 660 | 23_bulls_van_stormers_lions |
65
+ | 24 | bulls - van - white - rugby - loftus | 615 | 24_bulls_van_white_rugby |
66
+ | 25 | rugby - super - super rugby - competition - new | 531 | 25_rugby_super_super rugby_competition |
67
+ | 26 | scotland - glasgow - edinburgh - townsend - russell | 529 | 26_scotland_glasgow_edinburgh_townsend |
68
+ | 27 | brumbies - waratahs - reds - rebels - force | 521 | 27_brumbies_waratahs_reds_rebels |
69
+ | 28 | pro14 - leinster - ulster - scarlets - 19 | 490 | 28_pro14_leinster_ulster_scarlets |
70
+ | 29 | rugby - world - world rugby - nations - cup | 467 | 29_rugby_world_world rugby_nations |
71
+ | 30 | argentina - santiago - pumas - juan - matias | 447 | 30_argentina_santiago_pumas_juan |
72
+ | 31 | club - premiership - season - rugby - gloucester | 436 | 31_club_premiership_season_rugby |
73
+ | 32 | club - premiership - saracens - wasps - salary | 423 | 32_club_premiership_saracens_wasps |
74
+ | 33 | gatland - lions - wales - tour - barbarians | 361 | 33_gatland_lions_wales_tour |
75
+ | 34 | africa - south africa - south - zealand - new zealand | 339 | 34_africa_south africa_south_zealand |
76
+ | 35 | marais - saru - union - rugby - president | 317 | 35_marais_saru_union_rugby |
77
+ | 36 | kings - southern kings - southern - davids - schalk | 217 | 36_kings_southern kings_southern_davids |
78
+ | 37 | vs - referees - match official - official - assistant referees | 171 | 37_vs_referees_match official_official |
79
+ | 38 | sunwolves - japan - super - super rugby - 15 | 116 | 38_sunwolves_japan_super_super rugby |
80
+ | 39 | burgess - lancaster - england - bath - union | 26 | 39_burgess_lancaster_england_bath |
81
+
82
+ </details>
83
+
84
+ ## Training hyperparameters
85
+
86
+ * calculate_probabilities: False
87
+ * language: None
88
+ * low_memory: False
89
+ * min_topic_size: 10
90
+ * n_gram_range: (1, 1)
91
+ * nr_topics: None
92
+ * seed_topic_list: [['United Rugby Championship', 'Ireland', 'Wales', 'Scotland', 'South Africa', 'Italian', 'Pro14'], ['Pro14', 'Edinburgh', 'Glasgow', 'Scarlets', 'Ospreys', 'Zebre', 'Benetton', 'Connacht', 'Leinster', 'Ulster', 'Munster'], ['European Cup', 'European', 'Heineken', 'competition', 'Toulon', 'Saracens', 'Leinster'], ['Premiership', 'England', 'Exeter', 'Saracens', 'Wasps', 'Leicester', 'Harlequins', 'Sale', 'Bristol', 'Northampton'], ['Sevens', 'Fiji', 'New Zealand', 'South Africa', 'England', 'Australia', 'series', 'HSBC', 'Olympics'], ['Super Rugby', 'New Zealand', 'Australia', 'South Africa', 'Argentina', 'Japan', 'Blues', 'Brumbies', 'Crusaders', 'Sharks', 'Stormers'], ['Six Nations', 'England', 'Wales', 'Ireland', 'Scotland', 'France', 'Italy', 'Championship', 'Grand Slam'], ['Currie Cup', 'South Africa', 'Bulls', 'Lions', 'Sharks', 'Cheetahs', 'Western Province', 'domestic', 'provincial'], ['World Cup', 'international', 'New Zealand', 'Australia', 'South Africa', 'England', 'Wales', 'France'], ['Rugby Championship', 'New Zealand', 'Australia', 'South Africa', 'Argentina', 'All Blacks', 'Wallabies', 'Springboks', 'Pumas'], ['British Irish Lions', 'South Africa', 'New Zealand', 'Australia']]
93
+ * top_n_words: 30
94
+ * verbose: True
95
+
96
+ ## Framework versions
97
+
98
+ * Numpy: 1.21.0
99
+ * HDBSCAN: 0.8.29
100
+ * UMAP: 0.5.3
101
+ * Pandas: 2.0.2
102
+ * Scikit-Learn: 1.2.2
103
+ * Sentence-transformers: 2.2.2
104
+ * Transformers: 4.29.2
105
+ * Numba: 0.57.0
106
+ * Plotly: 5.14.1
107
+ * Python: 3.9.6
config.json ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": [
12
+ [
13
+ "United Rugby Championship",
14
+ "Ireland",
15
+ "Wales",
16
+ "Scotland",
17
+ "South Africa",
18
+ "Italian",
19
+ "Pro14"
20
+ ],
21
+ [
22
+ "Pro14",
23
+ "Edinburgh",
24
+ "Glasgow",
25
+ "Scarlets",
26
+ "Ospreys",
27
+ "Zebre",
28
+ "Benetton",
29
+ "Connacht",
30
+ "Leinster",
31
+ "Ulster",
32
+ "Munster"
33
+ ],
34
+ [
35
+ "European Cup",
36
+ "European",
37
+ "Heineken",
38
+ "competition",
39
+ "Toulon",
40
+ "Saracens",
41
+ "Leinster"
42
+ ],
43
+ [
44
+ "Premiership",
45
+ "England",
46
+ "Exeter",
47
+ "Saracens",
48
+ "Wasps",
49
+ "Leicester",
50
+ "Harlequins",
51
+ "Sale",
52
+ "Bristol",
53
+ "Northampton"
54
+ ],
55
+ [
56
+ "Sevens",
57
+ "Fiji",
58
+ "New Zealand",
59
+ "South Africa",
60
+ "England",
61
+ "Australia",
62
+ "series",
63
+ "HSBC",
64
+ "Olympics"
65
+ ],
66
+ [
67
+ "Super Rugby",
68
+ "New Zealand",
69
+ "Australia",
70
+ "South Africa",
71
+ "Argentina",
72
+ "Japan",
73
+ "Blues",
74
+ "Brumbies",
75
+ "Crusaders",
76
+ "Sharks",
77
+ "Stormers"
78
+ ],
79
+ [
80
+ "Six Nations",
81
+ "England",
82
+ "Wales",
83
+ "Ireland",
84
+ "Scotland",
85
+ "France",
86
+ "Italy",
87
+ "Championship",
88
+ "Grand Slam"
89
+ ],
90
+ [
91
+ "Currie Cup",
92
+ "South Africa",
93
+ "Bulls",
94
+ "Lions",
95
+ "Sharks",
96
+ "Cheetahs",
97
+ "Western Province",
98
+ "domestic",
99
+ "provincial"
100
+ ],
101
+ [
102
+ "World Cup",
103
+ "international",
104
+ "New Zealand",
105
+ "Australia",
106
+ "South Africa",
107
+ "England",
108
+ "Wales",
109
+ "France"
110
+ ],
111
+ [
112
+ "Rugby Championship",
113
+ "New Zealand",
114
+ "Australia",
115
+ "South Africa",
116
+ "Argentina",
117
+ "All Blacks",
118
+ "Wallabies",
119
+ "Springboks",
120
+ "Pumas"
121
+ ],
122
+ [
123
+ "British Irish Lions",
124
+ "South Africa",
125
+ "New Zealand",
126
+ "Australia"
127
+ ]
128
+ ],
129
+ "top_n_words": 30,
130
+ "verbose": true
131
+ }
ctfidf.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9346a4b72bdc68c338b1264286e3e760b9e6bab518dc5b8e192cbd87cc8136bf
3
+ size 6540360
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:e644122483ea54b6e85b3fab02d4a97ca4e4b98558d73bc8fe88279dde8c91a1
3
+ size 61528
topics.json ADDED
The diff for this file is too large to render. See raw diff