Skip to content

Commit

Permalink
Add information of env setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
zake7749 committed Jun 4, 2017
1 parent 360e840 commit ee15cd9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ import Chatbot.console as console
c = console.Console(model_path='your_model')
```

* 如要使用 QA 模組,請先依照[問答測試用資料集](https://github.com/zake7749/Chatbot#%E5%95%8F%E7%AD%94%E6%B8%AC%E8%A9%A6%E7%94%A8%E8%B3%87%E6%96%99%E9%9B%86)進行配置,或透過將`chatbot.py` 中的 `self.github_qa_unupdated` 設為 `True` 選擇關閉 QA 模組

## 使用方式

### 聊天機器人

```python
import Chatbot.chatbot as chatbot

chatter = chatbot.Chatbot()
chatter = chatbot.Chatbot(w2v_model_path='your_model')
chatter.waiting_loop()
```

Expand Down Expand Up @@ -124,7 +126,7 @@ QuestionAnswering
│ ├── .
│ ├── .
│ └── xxx.json
└── Titles.txt
└── Titles.txt
```
完成配置後,可以將`chatbot.py` 中的 `self.github_qa_unupdated` 設為 `False` 打開問答模組進行測試。

Expand Down

0 comments on commit ee15cd9

Please sign in to comment.