Skip to content

Commit

Permalink
Added ravestate_wildtalk.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Birkner committed Dec 3, 2018
1 parent 9a1f0d1 commit db7525a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ tts.wav
keys.yml
dist/*
build/*
*.egg-info
*.egg-info
ros2/build
ros2/install
ros2/log
2 changes: 1 addition & 1 deletion config/hello_world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ module: core
config:
import:
- ravestate_conio
- ravestate_hello_world
- ravestate_wildtalk
- ravestate_nlp
2 changes: 1 addition & 1 deletion config/telegram_hello_world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ config:
import:
- ravestate_telegramio
- ravestate_conio
- ravestate_hello_world
- ravestate_wildtalk
- ravestate_nlp
14 changes: 14 additions & 0 deletions modules/ravestate_wildtalk/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

from ravestate.state import state
from ravestate import registry

from roboy_parlai import wildtalk
import ravestate_rawio


@state(read="rawio:in", write="rawio:out")
def wildtalk_state(ctx):
ctx["rawio:out"] = wildtalk(ctx["rawio:in"])


registry.register(name="wildtalk", states=(wildtalk_state,))
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ PyAudio
Flask
python-telegram-bot
pyyaml-include
roboy_parlai>=0.1.post3
spacy
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.0.0/en_core_web_sm-2.0.0.tar.gz

0 comments on commit db7525a

Please sign in to comment.