kanhatakeyama commited on
Commit
5aa4afe
·
verified ·
1 Parent(s): 15a9463

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -0
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
+ ~~~