Skip to content

Drunkar/japanese_talk_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Japanese Talk API



CAUTION: Only available with Chainer 1.4.1 (Maybe 1.3.X and 1.4.X).


Respond to Japanese (and English and maybe Korean) input by lstm language-model.

Sample model was learned with crawled ask.fm data by yusuketomoto/chainer-char-rnn ( https://github.com/yusuketomoto/chainer-char-rnn ).

A python file tornado/static/CharRNN.py is copied from yusuketomoto/chainer-char-rnn.

How to use (with docker).

The Easiest way is use my docker image ( https://hub.docker.com/r/drunkar/cuda-caffe-anaconda-chainer/ ).

git clone https://github.com/Drunkar/japanese_talk_api.git

docker run --name japanese_talk_api -d -p 80:8787 -v `pwd`/japanese_talk_api:/app drunkar/cuda-caffe-anaconda-chainer1.4.1

docker exec -it japanese_talk_api bash
cd /app/tornado/models
./download_sample_model.sh

cd /app
python tornado/app.py --port=8787 --debug=True
ctrl+p, ctrl+q

( Run tornado app takes some times due to loading chainermodel file. )

Then access http://localhost/?q=こんにちは

hubot interface

About

Respond to Japanese (and English and maybe Korean) input by lstm language-model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published