Git Product home page Git Product logo

askalan's Introduction

askAlan

A chatbot with the personality of Alan Turing designed to pass the Turing Test.

The software for this tutorial can be downloaded from: https://github.com/tensorflow/nmt The detailed instructions on how to use this tutorial are contained in the README.md file in that GitHub repository. This appendix lists a summary of the steps to run that tutorial. I had to run this tutorial (or parts of it) several times during the project. I wrote this summary to facilitate doing this so quickly.

Create a Python3 virtualenv. In Oracle Virtualbox, create an Ubuntu Desktop 16.04 VM, 4GB RAM / 80 GB HDD In terminal, sudo apt upgrade sudo apt-get install python3-pip sudo pip3 install virtualenv

Create a virtualenv for this project. virtualenv tensorflow cd tensorflow/ source ./bin/activate

Download code sudo apt install git git clone https://github.com/tensorflow/nmt sudo apt install curl

Download the data: In my project, I replaced this data with the Q&A dataset, keeping the same filenames. cd nmt nmt/scripts/download_iwslt15.sh /tmp/nmt_data -train.en -train.vi -tst2012.en -tst2012.vi -tst2013.en -tst2013.vi -vocab.en -vocab.vi

Install dependencies needed to run the model mkdir /tmp/nmt_model pip install numpy pip install tensorflow

Run the model Enter the following command: python -m nmt.nmt
--src=vi --tgt=en
--vocab_prefix=/tmp/nmt_data/vocab
--train_prefix=/tmp/nmt_data/train
--dev_prefix=/tmp/nmt_data/tst2012
--test_prefix=/tmp/nmt_data/tst2013
--out_dir=/tmp/nmt_model
--num_train_steps=12000
--steps_per_stats=100
--num_layers=2
--num_units=128
--dropout=0.2
—metrics=bleu

Start Tensorboard to monitor the model build Open a new terminal window. tensorboard —logdir=/tmp/nmt_model/ Open a browser: localhost:6000

To delete the model:

  1. cd /tmp/nmt_model
  2. rm -r *

To ask the model questions:

  1. Open new terminal window
  2. Navigate to /tensorflow/nmt
  3. Copy askAlan.py into this directory
  4. python askAlan.py

askalan's People

Contributors

sarahsweeney 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.