Skip to content

Commit

Permalink
update rasa_nlu
Browse files Browse the repository at this point in the history
  • Loading branch information
zqhZY committed May 27, 2018
1 parent 6f8e26a commit e58ae10
Show file tree
Hide file tree
Showing 7 changed files with 2,225 additions and 28 deletions.
13 changes: 2 additions & 11 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
#### python3
install or update to python 3

#### install chinese version of rasa nlu
#### install rasa_core, this will install rasa nlu too, and now support chinese.
```
git clone https://github.com/crownpku/Rasa_NLU_Chi.git
cd rasa_nlu
pip install -r requirements.txt
python setup.py install
pip install rasa_core
```

#### install sklearn and MITIE
Expand All @@ -18,9 +15,3 @@ python setup.py install
pip install -U scikit-learn sklearn-crfsuite
pip install git+https://github.com/mit-nlp/MITIE.git
```

#### install rasa_core

```
pip install rasa_core
```
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,23 @@ rasa_chatbot/

### train nlu model
```bash
python bot.py train-nlu
python -m rasa_nlu.train --config mobile_nlu_model_config.json --data data/mobile_nlu_data.json --path models
```
### test rasa nlu
```
$python -m rasa_nlu.server --path projects
$ curl -X POST localhost:5000/parse -d '{"q":"hello"}' | python -m json.tool
{
"intent": {
"name": "greet",
"confidence": 1.0
},
"entities": [],
"text": "hello",
"project": "default",
"model": "fallback"
}
```

### train dialogue
Expand Down
Loading

0 comments on commit e58ae10

Please sign in to comment.