Git Product home page Git Product logo

ciceanwechatbots's Introduction

CiceanWechatBots

Use Rasa + Itchat build up my wechat talk bots

rasa-core-and-nlu-docker-compose

Rasa core and rasa nlu enviroment for local enviroment with moodbot example from official Rasa Stack documentation

Setup for Rasa Stack on local enviroment

Clone project:

git clone [email protected]:cicean/CiceanWechatBots.git

Go to project

cd rasa-core-and-nlu-docker-compose

Build docker-compose file

docker-compose build

Note: First time it can take 5-10 min!

Run docker-compose

docker-compose up -d

Check status of Rasa Stack container

docker ps -as

Rasa Stack container status

CONTAINER ID        IMAGE                COMMAND                  CREATED             STATUS              PORTS                                            NAMES                  SIZE
40ba123eecdb        ciceanwechatbots_rasa_core   "./entrypoint.sh s..."   9 seconds ago       Up 8 seconds        0.0.0.0:5000->5000/tcp, 0.0.0.0:5005->5005/tcp   rasacore_rasa_core_1   525 kB (virtual 2.7 GB)

Attach to rasa_core container

docker exec -it 40ba123eecdb bash

Go to folder:

cd examples/moodbot/

Execute run-rasa-server.sh script and wait until Rasa Core server is started

./run-rasa-core.sh

Rasa Core server started sucessfully

Using TensorFlow backend.
2018-04-18 21:13:33+0000 [-] Log opened.
2018-04-18 21:13:33+0000 [-] Site starting on 5005
2018-04-18 21:13:33+0000 [-] Starting factory <twisted.web.server.Site object at 0x7fcca0c0abe0>

Check Rasa Nlu Rest API

curl 'http://localhost:5000/parse?q=hello'

Note: Official Rasa Nlu documentation

Check Rasa Core Rest API

curl -XPOST localhost:5005/conversations/default/parse -d '{"query":"hello there"}'

Note: Official Rasa Core documentation

ciceanwechatbots's People

Contributors

cicean avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.