yasu-miura / japanese_talk_api

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Japanese Talk API

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 japanese_talk_api:/app drunkar/cuda-caffe-anaconda-chainer

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=こんにちは

About

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


Languages

Language:Python 73.9%Language:CoffeeScript 24.2%Language:Shell 1.9%