kanhatakeyama
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
|
5 |
+
# BERTopicを日本語webデータで訓練したモデルです。
|
6 |
+
|
7 |
+
~~~
|
8 |
+
from bertopic import BERTopic
|
9 |
+
model_path = "data/topic_model.bin"
|
10 |
+
topic_model = BERTopic.load(model_path)
|
11 |
+
|
12 |
+
docs=["こんにちは",
|
13 |
+
"吾輩は猫である",
|
14 |
+
]
|
15 |
+
categories = topic_model.transform(docs)[0]
|
16 |
+
|
17 |
+
~~~
|