Skip to content

Commit

Permalink
Merge pull request #44 from joaovitor3/FixNotebooks
Browse files Browse the repository at this point in the history
Arruma notebooks
  • Loading branch information
arthurTemporim authored Jul 21, 2019
2 parents 6eab9b3 + 9f06a94 commit 8682f82
Show file tree
Hide file tree
Showing 7 changed files with 1,153 additions and 1,017 deletions.
15 changes: 14 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,20 @@ services:
env_file:
- docker/notebooks.env
volumes:
- ./bot:/work/bot
- ./coach:/work/coach
- ./notebooks:/work/notebooks
- notebook_models:/models:ro
ports:
- 8888:8888
depends_on:
- coach

# =============================== Coach =================================
coach:
image: botcoach:latest
volumes:
- notebook_models:/notebook_models
command: sh -c "cp -r /src_models/* /notebook_models"

volumes:
notebook_models:
16 changes: 8 additions & 8 deletions docker/notebooks.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BOT_DIR_PATH=../../bot/
BOT_DOMAIN_PATH=../../bot/domain.yml
BOT_NLU_CONFIG_PATH=../../bot/nlu_config.yml
BOT_STORIES_PATH=../../bot/data/stories/
BOT_INTENTS_PATH=../../bot/data/intents/
BOT_MODELS_PATH=../../bot/models/
BOT_MODELS_NLU_PATH=../../bot/models/nlu/current/
BOT_MODELS_DIALOGUE_PATH=../../bot/models/dialogue
COACH_DIR_PATH=../../coach/
COACH_DOMAIN_PATH=../../coach/domain.yml
COACH_NLU_CONFIG_PATH=../../coach/nlu_config.yml
COACH_STORIES_PATH=../../coach/data/stories/
COACH_INTENTS_PATH=../../coach/data/intents/
COACH_MODELS_PATH=/models/
COACH_MODELS_NLU_PATH=/models/nlu/current/
COACH_MODELS_DIALOGUE_PATH=/models/dialogue
2 changes: 1 addition & 1 deletion docs/README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Various technologies are used in boilerplate that interact with each other to ob


The user interacts with Boilerplate via RocketChat or Telegram, which sends the messages to the Rasa NLU via
connectors, where it identifies the * intent *, and responds to the Rasa Core, according to *stories* and *actions*.
connectors, where it identifies the *intent*, and responds to the Rasa Core, according to *stories* and *actions*.
The *models* used for the conversation were generated by the *trainer* module and then transferred to the bot, these
models can be versioned and evolved between bots.
Notebooks evaluate the operation according to the format of *intents* and *stories*.
Expand Down
1,078 changes: 596 additions & 482 deletions notebooks/intents/.ipynb_checkpoints/intents-analysis-checkpoint.ipynb

Large diffs are not rendered by default.

564 changes: 283 additions & 281 deletions notebooks/intents/intents-analysis.ipynb

Large diffs are not rendered by default.

204 changes: 102 additions & 102 deletions notebooks/stories/chat_graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,72 +137,72 @@
graph = `digraph {
0 [class="start active", fillcolor=green, fontsize=12, label=START, style=filled];
"-1" [class=end, fillcolor=red, fontsize=12, label=END, style=filled];
1 [class="", fontsize=12, label=utter_como_estou];
2 [class="", fontsize=12, label=utter_playlist];
3 [class="", fontsize=12, label=utter_comida];
4 [class="", fontsize=12, label=utter_cor];
5 [class="", fontsize=12, label=utter_de_onde_voce_eh];
6 [class="", fontsize=12, label=utter_relationship];
7 [class="", fontsize=12, label=utter_me];
8 [class="", fontsize=12, label=utter_filhos];
9 [class="", fontsize=12, label=utter_filme];
10 [class="", fontsize=12, label=utter_signo];
11 [class="", fontsize=12, label=utter_triste];
12 [class="", fontsize=12, label=utter_religiao];
13 [class="", fontsize=12, label=utter_hobby];
14 [class="", fontsize=12, label=utter_bff];
15 [class="", fontsize=12, label=utter_historia];
16 [class="", fontsize=12, label=utter_risada];
17 [class="", fontsize=12, label=utter_cumprimentar];
18 [class="", fontsize=12, label=action_test];
20 [class="", fontsize=12, label=utter_despedir];
21 [class="", fontsize=12, label=utter_tudo_bem];
24 [class="", fontsize=12, label=utter_diga_mais];
25 [class="", fontsize=12, label=utter_esporte];
26 [class="", fontsize=12, label=utter_default];
28 [class="", fontsize=12, label=utter_elogios];
32 [class="", fontsize=12, label=utter_time];
33 [class="", fontsize=12, label=utter_linguagens];
34 [class="", fontsize=12, label=utter_genero];
35 [class="", fontsize=12, label=utter_star_wars];
36 [class="", fontsize=12, label=utter_piada];
37 [class="", fontsize=12, label=utter_license];
38 [class="", fontsize=12, label=utter_onde_voce_mora];
39 [class=intent, fillcolor=lightblue, label=como_estou, shape=rect, style=filled];
40 [class=intent, fillcolor=lightblue, label=playlist, shape=rect, style=filled];
41 [class=intent, fillcolor=lightblue, label=comida, shape=rect, style=filled];
42 [class=intent, fillcolor=lightblue, label=cor, shape=rect, style=filled];
43 [class=intent, fillcolor=lightblue, label=de_onde_voce_eh, shape=rect, style=filled];
44 [class=intent, fillcolor=lightblue, label=me, shape=rect, style=filled];
45 [class=intent, fillcolor=lightblue, label=filhos, shape=rect, style=filled];
46 [class=intent, fillcolor=lightblue, label=filme, shape=rect, style=filled];
47 [class=intent, fillcolor=lightblue, label=signo, shape=rect, style=filled];
48 [class=intent, fillcolor=lightblue, label=triste, shape=rect, style=filled];
49 [class=intent, fillcolor=lightblue, label=religiao, shape=rect, style=filled];
50 [class=intent, fillcolor=lightblue, label=hobby, shape=rect, style=filled];
51 [class=intent, fillcolor=lightblue, label=bff, shape=rect, style=filled];
52 [class=intent, fillcolor=lightblue, label=historia, shape=rect, style=filled];
53 [class=intent, fillcolor=lightblue, label=risada, shape=rect, style=filled];
54 [class=intent, fillcolor=lightblue, label=cumprimentar, shape=rect, style=filled];
55 [class=intent, fillcolor=lightblue, label=despedir, shape=rect, style=filled];
56 [class=intent, fillcolor=lightblue, label=negar, shape=rect, style=filled];
57 [class=intent, fillcolor=lightblue, label=tudo_bem, shape=rect, style=filled];
58 [class=intent, fillcolor=lightblue, label=diga_mais, shape=rect, style=filled];
59 [class=intent, fillcolor=lightblue, label=esporte, shape=rect, style=filled];
60 [class=intent, fillcolor=lightblue, label=out_of_scope, shape=rect, style=filled];
61 [class=intent, fillcolor=lightblue, label=elogios, shape=rect, style=filled];
62 [class=intent, fillcolor=lightblue, label=time, shape=rect, style=filled];
63 [class=intent, fillcolor=lightblue, label=linguagens, shape=rect, style=filled];
64 [class=intent, fillcolor=lightblue, label=genero, shape=rect, style=filled];
65 [class=intent, fillcolor=lightblue, label=star_wars, shape=rect, style=filled];
66 [class=intent, fillcolor=lightblue, label=piada, shape=rect, style=filled];
67 [class=intent, fillcolor=lightblue, label=license, shape=rect, style=filled];
68 [class=intent, fillcolor=lightblue, label=onde_voce_mora, shape=rect, style=filled];
1 [class="", fontsize=12, label=utter_religiao];
2 [class="", fontsize=12, label=utter_esporte];
3 [class="", fontsize=12, label=utter_time];
4 [class="", fontsize=12, label=utter_linguagens];
5 [class="", fontsize=12, label=utter_genero];
6 [class="", fontsize=12, label=utter_star_wars];
7 [class="", fontsize=12, label=utter_piada];
8 [class="", fontsize=12, label=utter_license];
9 [class="", fontsize=12, label=utter_onde_voce_mora];
10 [class="", fontsize=12, label=utter_como_estou];
11 [class="", fontsize=12, label=utter_despedir];
12 [class="", fontsize=12, label=utter_playlist];
13 [class="", fontsize=12, label=utter_comida];
14 [class="", fontsize=12, label=utter_cor];
15 [class="", fontsize=12, label=utter_de_onde_voce_eh];
16 [class="", fontsize=12, label=utter_relationship];
17 [class="", fontsize=12, label=utter_me];
18 [class="", fontsize=12, label=utter_filhos];
19 [class="", fontsize=12, label=utter_filme];
20 [class="", fontsize=12, label=utter_signo];
21 [class="", fontsize=12, label=utter_triste];
22 [class="", fontsize=12, label=utter_hobby];
23 [class="", fontsize=12, label=utter_tudo_bem];
24 [class="", fontsize=12, label=utter_bff];
25 [class="", fontsize=12, label=utter_historia];
26 [class="", fontsize=12, label=utter_risada];
27 [class="", fontsize=12, label=utter_cumprimentar];
28 [class="", fontsize=12, label=action_test];
32 [class="", fontsize=12, label=utter_diga_mais];
33 [class="", fontsize=12, label=utter_default];
35 [class="", fontsize=12, label=utter_elogios];
39 [class=intent, fillcolor=lightblue, label=religiao, shape=rect, style=filled];
40 [class=intent, fillcolor=lightblue, label=esporte, shape=rect, style=filled];
41 [class=intent, fillcolor=lightblue, label=time, shape=rect, style=filled];
42 [class=intent, fillcolor=lightblue, label=linguagens, shape=rect, style=filled];
43 [class=intent, fillcolor=lightblue, label=genero, shape=rect, style=filled];
44 [class=intent, fillcolor=lightblue, label=star_wars, shape=rect, style=filled];
45 [class=intent, fillcolor=lightblue, label=piada, shape=rect, style=filled];
46 [class=intent, fillcolor=lightblue, label=license, shape=rect, style=filled];
47 [class=intent, fillcolor=lightblue, label=onde_voce_mora, shape=rect, style=filled];
48 [class=intent, fillcolor=lightblue, label=como_estou, shape=rect, style=filled];
49 [class=intent, fillcolor=lightblue, label=despedir, shape=rect, style=filled];
50 [class=intent, fillcolor=lightblue, label=negar, shape=rect, style=filled];
51 [class=intent, fillcolor=lightblue, label=playlist, shape=rect, style=filled];
52 [class=intent, fillcolor=lightblue, label=comida, shape=rect, style=filled];
53 [class=intent, fillcolor=lightblue, label=cor, shape=rect, style=filled];
54 [class=intent, fillcolor=lightblue, label=de_onde_voce_eh, shape=rect, style=filled];
55 [class=intent, fillcolor=lightblue, label=me, shape=rect, style=filled];
56 [class=intent, fillcolor=lightblue, label=filhos, shape=rect, style=filled];
57 [class=intent, fillcolor=lightblue, label=filme, shape=rect, style=filled];
58 [class=intent, fillcolor=lightblue, label=signo, shape=rect, style=filled];
59 [class=intent, fillcolor=lightblue, label=triste, shape=rect, style=filled];
60 [class=intent, fillcolor=lightblue, label=hobby, shape=rect, style=filled];
61 [class=intent, fillcolor=lightblue, label=tudo_bem, shape=rect, style=filled];
62 [class=intent, fillcolor=lightblue, label=bff, shape=rect, style=filled];
63 [class=intent, fillcolor=lightblue, label=historia, shape=rect, style=filled];
64 [class=intent, fillcolor=lightblue, label=risada, shape=rect, style=filled];
65 [class=intent, fillcolor=lightblue, label=cumprimentar, shape=rect, style=filled];
66 [class=intent, fillcolor=lightblue, label=diga_mais, shape=rect, style=filled];
67 [class=intent, fillcolor=lightblue, label=out_of_scope, shape=rect, style=filled];
68 [class=intent, fillcolor=lightblue, label=elogios, shape=rect, style=filled];
69 [class=intent, fillcolor=lightblue, label=action_test, shape=rect, style=filled];
70 [class=intent, fillcolor=lightblue, label=relationship, shape=rect, style=filled];
71 [class=intent, fillcolor=lightblue, label=action_test, shape=rect, style=filled];
72 [class=intent, fillcolor=lightblue, label=despedir, shape=rect, style=filled];
73 [class=intent, fillcolor=lightblue, label=tudo_bem, shape=rect, style=filled];
72 [class=intent, fillcolor=lightblue, label=tudo_bem, shape=rect, style=filled];
73 [class=intent, fillcolor=lightblue, label=despedir, shape=rect, style=filled];
0 -> 39 [class="", key=0];
0 -> 40 [class="", key=0];
0 -> 41 [class="", key=0];
Expand Down Expand Up @@ -238,7 +238,7 @@
2 -> "-1" [class="", key=NONE, label=""];
3 -> "-1" [class="", key=NONE, label=""];
4 -> "-1" [class="", key=NONE, label=""];
5 -> 70 [class="", key=0];
5 -> "-1" [class="", key=NONE, label=""];
6 -> "-1" [class="", key=NONE, label=""];
7 -> "-1" [class="", key=NONE, label=""];
8 -> "-1" [class="", key=NONE, label=""];
Expand All @@ -248,61 +248,61 @@
12 -> "-1" [class="", key=NONE, label=""];
13 -> "-1" [class="", key=NONE, label=""];
14 -> "-1" [class="", key=NONE, label=""];
15 -> "-1" [class="", key=NONE, label=""];
15 -> 70 [class="", key=0];
16 -> "-1" [class="", key=NONE, label=""];
17 -> "-1" [class="", key=NONE, label=""];
17 -> 71 [class="", key=0];
17 -> 72 [class="", key=0];
17 -> 73 [class="", key=0];
18 -> "-1" [class="", key=NONE, label=""];
19 -> "-1" [class="", key=NONE, label=""];
20 -> "-1" [class="", key=NONE, label=""];
21 -> "-1" [class="", key=NONE, label=""];
22 -> "-1" [class="", key=NONE, label=""];
23 -> "-1" [class="", key=NONE, label=""];
24 -> "-1" [class="", key=NONE, label=""];
25 -> "-1" [class="", key=NONE, label=""];
26 -> "-1" [class="", key=NONE, label=""];
27 -> "-1" [class="", key=NONE, label=""];
27 -> 71 [class="", key=0];
27 -> 72 [class="", key=0];
27 -> 73 [class="", key=0];
28 -> "-1" [class="", key=NONE, label=""];
32 -> "-1" [class="", key=NONE, label=""];
33 -> "-1" [class="", key=NONE, label=""];
34 -> "-1" [class="", key=NONE, label=""];
35 -> "-1" [class="", key=NONE, label=""];
36 -> "-1" [class="", key=NONE, label=""];
37 -> "-1" [class="", key=NONE, label=""];
38 -> "-1" [class="", key=NONE, label=""];
39 -> 1 [class="", key=0];
40 -> 2 [class="", key=0];
41 -> 3 [class="", key=0];
42 -> 4 [class="", key=0];
43 -> 5 [class="", key=0];
44 -> 7 [class="", key=0];
45 -> 8 [class="", key=0];
46 -> 9 [class="", key=0];
47 -> 10 [class="", key=0];
48 -> 11 [class="", key=0];
49 -> 12 [class="", key=0];
50 -> 13 [class="", key=0];
51 -> 14 [class="", key=0];
52 -> 15 [class="", key=0];
53 -> 16 [class="", key=0];
54 -> 17 [class="", key=0];
55 -> 20 [class="", key=0];
56 -> 20 [class="", key=0];
57 -> 21 [class="", key=0];
58 -> 24 [class="", key=0];
59 -> 25 [class="", key=0];
60 -> 26 [class="", key=0];
61 -> 28 [class="", key=0];
62 -> 32 [class="", key=0];
63 -> 33 [class="", key=0];
64 -> 34 [class="", key=0];
65 -> 35 [class="", key=0];
66 -> 36 [class="", key=0];
67 -> 37 [class="", key=0];
68 -> 38 [class="", key=0];
69 -> 18 [class="", key=0];
70 -> 6 [class="", key=0];
71 -> 18 [class="", key=0];
72 -> 20 [class="", key=0];
73 -> 21 [class="", key=0];
44 -> 6 [class="", key=0];
45 -> 7 [class="", key=0];
46 -> 8 [class="", key=0];
47 -> 9 [class="", key=0];
48 -> 10 [class="", key=0];
49 -> 11 [class="", key=0];
50 -> 11 [class="", key=0];
51 -> 12 [class="", key=0];
52 -> 13 [class="", key=0];
53 -> 14 [class="", key=0];
54 -> 15 [class="", key=0];
55 -> 17 [class="", key=0];
56 -> 18 [class="", key=0];
57 -> 19 [class="", key=0];
58 -> 20 [class="", key=0];
59 -> 21 [class="", key=0];
60 -> 22 [class="", key=0];
61 -> 23 [class="", key=0];
62 -> 24 [class="", key=0];
63 -> 25 [class="", key=0];
64 -> 26 [class="", key=0];
65 -> 27 [class="", key=0];
66 -> 32 [class="", key=0];
67 -> 33 [class="", key=0];
68 -> 35 [class="", key=0];
69 -> 28 [class="", key=0];
70 -> 16 [class="", key=0];
71 -> 28 [class="", key=0];
72 -> 23 [class="", key=0];
73 -> 11 [class="", key=0];
}
`;
drawGraph(graph);
Expand Down
Loading

0 comments on commit 8682f82

Please sign in to comment.