Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zqhZY authored Sep 8, 2018
1 parent 6c1d758 commit e57e91d
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,22 @@ rasa_chatbot/

### train nlu model
```bash
python -m rasa_nlu.train --config mobile_nlu_model_config.json --data data/mobile_nlu_data.json --path models
sh train.sh
```
### test rasa nlu
```
$python -m rasa_nlu.server --path projects
$ curl -X POST localhost:5000/parse -d '{"q":"hello"}' | python -m json.tool
$ python httpserver.py
$ curl -X POST localhost:1235/parse -d '{"q":"我的流量还剩多少"}' | python -m json.tool | python -m json.tool
{
"intent": {
"name": "greet",
"confidence": 1.0
},
"entities": [],
"text": "hello",
"project": "default",
"model": "fallback"
'q': '我的流量还剩多少',
'intent': 'request_search',
'entities': {
'item': '流量'
}
}
```

## 以下待更新
### train dialogue
```bash
python bot.py train-dialogue
Expand Down

0 comments on commit e57e91d

Please sign in to comment.