Skip to content

Commit

Permalink
Merge pull request #219 from lappis-unb/improve_intents
Browse files Browse the repository at this point in the history
Improve intents
  • Loading branch information
MatheusFaria authored Nov 5, 2018
2 parents bbb3b05 + 3e4385a commit 4ce8786
Show file tree
Hide file tree
Showing 10 changed files with 507 additions and 909 deletions.
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
/rouana/models
rasa_core.log
errors.json
### Rasa evaluate ###
rouana/lab/models/
rouana/lab/errors.json
rouana/lab/lab/

### Rasa evaluation ###
evaluation/models/
evaluation/errors.json
evaluation/lab/
evaluation/bot-intent-lab.ipynb
rouana/.ipython/
rouana/.keras/
rouana/.local/
rouana/work

### Rocketchat ###
/data
Expand Down
463 changes: 463 additions & 0 deletions analysis/evaluate-intents.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
matplotlib==3.0.1
matplotlib~=2.0
rasa-nlu==0.13.7
pygraphviz==1.5
spacy==2.0.16
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,13 @@ services:
restart: unless-stopped
volumes:
- ./web/postgres-data:/var/lib/postgresql/data

evaluation:
build:
context: .
dockerfile: ./docker/evaluation/Dockerfile
volumes:
- ./rouana:/work/rouana
- ./evaluation:/work/evaluation
ports:
- 8888:8888
18 changes: 18 additions & 0 deletions docker/analysis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM jupyter/minimal-notebook

USER root

RUN apt-get update \
&& apt-get upgrade -yq

RUN apt-get install -yq graphviz libgraphviz-dev pkg-config

ADD ./evaluation/intent-requirements.txt /tmp/

RUN pip install -r /tmp/intent-requirements.txt

WORKDIR /work/

RUN python -m spacy download pt

CMD jupyter-notebook --allow-root --NotebookApp.token='' --NotebookApp.password=''
3 changes: 1 addition & 2 deletions rouana/data/intents/curiosidades.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
- incentivador
- patrocinador
- vantagem
- pessoa juridica
- ganha


Expand All @@ -58,7 +57,7 @@
- como ser proponente
- quem pode propor
- como me inscrever
- proponente
- como me tornar proponente
- elegibilidade
- inscrever
- participar
Expand Down
8 changes: 4 additions & 4 deletions rouana/data/intents/geral.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
- posso falar com voce
- pode me tirar uma duvida
- gostaria de tirar uma duvida
- oi tais
- ola tais
- to bem
- tranquilo
Expand Down Expand Up @@ -37,7 +36,6 @@
- tudo bem
- ja
-
- conheco
- sim
- ta
- ok
Expand Down Expand Up @@ -77,15 +75,17 @@
- creio que sobre a lei rouanet
- quero falar sobre a lei
- vamos falar sobre a lei
- me fale da lei rouanet
- mais sobre a lei
- aprender sobre a lei rouanet
- sobre a lei
- lei rouanet
- lei
- rouanet
- curiosidades
- sobre a Lei eu acho
- aprender mais
- saber mais
- lei
- aprender mais

## intent:afirmar_projeto
- prefiro conversar sobre criaçao e andamento de projetos
Expand Down
17 changes: 0 additions & 17 deletions rouana/lab/Dockerfile

This file was deleted.

Loading

0 comments on commit 4ce8786

Please sign in to comment.