Skip to content

lifelongeek/convai_docker

Repository files navigation

convai_docker : Team kAIb

Install

  1. clone this project

  2. download glove.840B.300d.txt (from http://nlp.stanford.edu/data/glove.840B.300d.zip) and put in data/glove.840B.300d.txt

  3. download model.zip extract it

    source : google drive link (https://drive.google.com/open?id=0BzxkVbZ3kJ_4SzFGdUJWTFYzaEE)

  4. install nvidia-docker ( https://github.com/NVIDIA/nvidia-docker)

How to run

  1. (GPU version)

sudo nvidia-docker run -w /app -p 1990:1990 -v /absolute_path/to/convai_docker:/app calee/kaib python run-demo-simple.py --use_gpu True

(CPU version)

sudo nvidia-docker run -w /app -p 1990:1990 -v /absolute_path/to/convai_docker:/app calee/kaib python run-demo-simple.py

  1. CC mode example

python get_answer_cnsl.py --paragraph "dummy" --question "how old are you ?"

  1. QA mode example

python get_answer_cnsl.py --paragraph 'In the late 1980s, according to "Richard Feynman and the Connection Machine", Feynman played a crucial role in developing the first massively parallel computer, and in finding innovative uses for it in numerical computations, in building neural networks, as well as physical simulations using cellular automata (such as turbulent fluid flow), working with Stephen Wolfram at Caltech. His son Carl also played a role in the development of the original Connection Machine engineering; Feynman influencing the interconnects while his son worked on the software.' --question "Which article mention about Feynman's role developing parallel computer ?"