Skip to content

Commit

Permalink
fix: update gobot minimal tutorial for current colab version (#1183)
Browse files Browse the repository at this point in the history
* install dependencies relevant for the used config

* fix config name in notebook text: default->minimal

* fix: proper inference call example

* fix quotes typos: proper inference call example

* fix: cell type code->text
  • Loading branch information
oserikov authored Apr 20, 2020
1 parent 444d484 commit 804de52
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions examples/gobot_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
},
"outputs": [],
"source": [
"!pip install deeppavlov"
"!pip install deeppavlov\n",
"!python -m deeppavlov install gobot_dstc2_minimal"
]
},
{
Expand Down Expand Up @@ -427,7 +428,7 @@
"source": [
"For our bot we will use ML pipline for task-oriented conversational skill from DeepPavlov. We will train this skill with our dialogue data. \n",
"\n",
"Skills in DeepPavlov are defined by configuration files. So, we will use [default DSTC2 bot config](https://github.com/deepmipt/DeepPavlov/blob/master/deeppavlov/configs/go_bot/gobot_dstc2.json) ([more configs](https://github.com/deepmipt/DeepPavlov/blob/master/deeppavlov/configs/go_bot) are available) and change sections responsible for \n",
"Skills in DeepPavlov are defined by configuration files. So, we will use [minimal DSTC2 bot config](https://github.com/deepmipt/DeepPavlov/blob/master/deeppavlov/configs/go_bot/gobot_dstc2_minimal.json) ([more configs](https://github.com/deepmipt/DeepPavlov/blob/master/deeppavlov/configs/go_bot) are available) and change sections responsible for \n",
"- embeddings,\n",
"- response templates,\n",
"- data and model load/save paths.\n",
Expand Down Expand Up @@ -669,7 +670,7 @@
},
"outputs": [],
"source": [
"bot(['good evening, bot'])"
"bot([[{\"text\": \"good evening, bot\"}]])"
]
},
{
Expand All @@ -682,7 +683,7 @@
},
"outputs": [],
"source": [
"bot(['the weather is clooudy and gloooomy'])"
"bot([[{\"text\": \"the weather is clooudy and gloooomy\"}]])"
]
},
{
Expand All @@ -695,7 +696,7 @@
},
"outputs": [],
"source": [
"bot([\"nice idea, thanks!\"])"
"bot([[{\"text\": \"nice idea, thanks!\"}]])"
]
},
{
Expand All @@ -721,7 +722,7 @@
},
"outputs": [],
"source": [
"bot(['hi bot'])"
"bot([[{\"text\": \"hi bot\"}]])"
]
},
{
Expand All @@ -734,7 +735,7 @@
},
"outputs": [],
"source": [
"bot([\"looks ok, the sun is bright and yesterday's rain stopped already\"])"
"bot([[{\"text\": \"looks ok, the sun is bright and yesterday's rain stopped already\"}]])"
]
},
{
Expand All @@ -747,14 +748,13 @@
},
"outputs": [],
"source": [
"bot(['i dont wanna'])"
"bot([[{\"text\": \"i dont wanna\"}]])"
]
},
{
"cell_type": "markdown",
"metadata": {
"colab": {},
"colab_type": "code",
"colab_type": "text",
"id": "wdg4wl0dgSD9"
},
"source": [
Expand Down

0 comments on commit 804de52

Please sign in to comment.