Sign inSign up

masayaresearch/dialogue

By masayaresearch

•Updated about 10 years ago

Image
0

365

masayaresearch/dialogue repository overview

⁠Chainer-Slack-Twitter-Dialogue

This tool is making Dialogue Model for Slack

Thsi tool has 3 functions

1: Slack Communication 2: Learning by the Chainer 3: Collect Twitter Data

⁠Description

This tool is making the Dialogue Model

If you see the detail about it, you see the below

http://qiita.com/GushiSnow/items/79ca7deeb976f50126d7⁠

####Prepare Twitter Key

https://apps.twitter.com/

####Prepare enviroment.yml

Twitter

twitter:
    consumer_key: your consumer key 
    consumer_secret: your consumer secret
    token: your api token
    token_secret: your token secret
    mecab: your mecab dictionary

Slack

slack:
    api_token: your api token 
    channel: your channel 
    user: your user token
    mecab: your mecab dictionary 

Installing a library bellow

##Requirements

    Python 3.4+
	Mecab and neolog-dict
	numpy
    chainer
    ipython
    notebook
    jinja2
    pyzmq
    tornado
    cython
    gensim
    PyYAML
    requests
    requests_oauthlib
    djehuty
    flask-slackbot
    flask
    mecab-python
    future
    websocket-client

⁠

⁠Usage

Docker run

you have synchronize the slack api yml file and twitter api yml file.

docker run -v {your download folder}/Chainer-Slack-Twitter-Dialogue/slack/enviroment_slack.yml:/home/docker_user/Chainer-Slack-Twitter-Dialogue/slack/enviroment_slack.yml -v  {your download folder}/Chainer-Slack-Twitter-Dialogue/slack/enviroment_twitter.yml:/home/docker_user/Chainer-Slack-Twitter-Dialogue/slack/enviroment_twitter.yml -it docker_dialogue/dialogue bash

Slack Communication

*You execute python
cd slack
python app_word_class.py

Demo Movie

https://www.youtube.com/watch?v=2eGs_Qpt_aQ&feature=youtu.be⁠

⁠

⁠Code Directory Structure

⁠

Dialogue ipython notebook and Encoder Decoder Model
  - slack/     ... Slack Code
  - util/       ... Encoder Decoder tools
  - twitter/        ... Twitter Code
  - word2vec/        ... Word2Vec Code

⁠

⁠Licence

⁠

The MIT License (MIT)

Copyright (c) 2015 Masaya Ogushi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

⁠

⁠Author

⁠

SnowMasaya⁠

⁠References

⁠

Tag summary

Content type

Image

Digest

Size

4.7 GB

Last updated

about 10 years ago

docker pull masayaresearch/dialogue