Skip to content

Commit e1b8d3d

Browse files
author
李闯
committed
add chatbotv5
1 parent de5e2e5 commit e1b8d3d

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed

chatbotv5/readme.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## 训练
2+
python demo.py train
3+
4+
## 预测
5+
python demo.py predict
6+
7+
#### 效果如下:
8+
<pre>
9+
[root@localhost $] python demo.py predict
10+
Building prefix dict from the default dictionary ...
11+
Loading model from cache
12+
/var/folders/tq/c0kp5y857x138x5vf8bzxfc80000gp/T/jieba.cache
13+
Loading model cost 0.969 seconds.
14+
Prefix dict has been built succesfully.
15+
> 你好
16+
你 也好 ~
17+
> 呵呵
18+
傻 逼 呵呵
19+
> 哈哈
20+
笑 屁
21+
> 你是谁
22+
我 是 小猴子
23+
> 早
24+
WARN:词汇不在服务区
25+
> 早上好
26+
哈哈
27+
> 屁
28+
你 屁 会
29+
> 滚蛋
30+
WARN:词汇不在服务区
31+
> 傻逼
32+
他妈 逼 的
33+
</pre>
34+
35+
## 代码讲解
36+
欢迎关注[www.shareditor.com](www.shareditor.com)最新文章

chatbotv5/readme.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)