Tensorflow/SyntaxNet Installation Guide
Installation https://github.com/tensorflow/models/tree/master/research/syntaxnet 3 Possibilities - Manual Installation: takes 2 hours+, high chance of errors - Ubuntu 16.10+ binary installation: fast but might lead to version incompatibility errors - Docker installation: stable, fast and easy, Recommended
What is Docker? - Creates containers to run applications in - Similar to traditional Virtualization but more lightweight since it does not require an installed OS itself - Therefore more unrestricted and flexible - Reduces the cost and utilization of server resources - Working with containers created by others very easy and fast, see Docker Hub - Removing the container removes all traces of the app, very convenient
SyntaxNet with DRAGNN SyntaxNet: is a transition-based framework for natural language processing, with core functionality for feature extraction, representing annotated data, and evaluation. As of the DRAGNN release, it is recommended to train and deploy SyntaxNet models using the DRAGNN framework. DRAGNN: Implements Dynamic Recurrent Acyclic Graphical Neural Networks (DRAGNN), a framework for building multi-task, fully dynamically constructed computation graphs. Provides a much easier to use interface to SyntaxNet. DRAGNN is significantly more accurate and efficient than seq2seq with attention for syntactic dependency parsing and yields more accurate multitask learning for extractive summarization tasks.
Docker Installation Set up the repository: 1. Update the apt package index $ sudo apt-get update 2. Install packages to allow apt to use a repository over HTTPS: $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common 3. Add Docker s official GPD key: $ curl -fssl https://download.docker.com/linux/ubuntu/gpg sudo apt-key add -
Docker Installation Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint. $ sudo apt-key fingerprint 0EBFCD88 4. Use the following command to set up the stable repository. $ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
Docker Installation 1. Update the apt package index $ sudo apt-get update 2. Install the latest version of Docker CE $ sudo apt-get install docker-ce 3. Verfity that Docker CE is installed correctly $ sudo docker run hello-world
Docker Installation Pull the tensorflox/syntaxnet container and setup IPython notebook server $ sudo docker run --rm -ti -p 8888:8888 tensorflow/syntaxnet Ctrl + left click on token to open notebook server for the first time
Docker Windows Installation For Windows under Version 10: https://docs.docker.com/toolbox/toolbox_install_windows/ 1. Download the installer.exe from the website and run it Installs Docker Toolbox, VirtualBox and Kitematic, the Docker GUI 2. Run Docker Quickstart icon to open a terminal The terminal does several things to set up Docker Toolbox. When done the terminal displays the $ prompt. 3. Verify your installation $ sudo docker run hello-world
Docker Windows Installation Docker is now running 1. Create a machine $ sudo docker-machine create machinename Hyper-V for virtualization must be enabled in BIOS settings 2. Set environment Set environment $ sudo docker-machine env machinename docker-machine env machinename will print out export commands which can be run in a subshell
Docker Windows Installation For Windows 10: https://docs.docker.com/docker-for-windows/install/ 1. Download the installer.exe from the website and run it 2. Follow the install wizard to accept the license, authorize the installer and proceed 3. Click Finish on the setup complete dialog to launch Docker 4. Start Docker for Windows Docker will not start automatically, search for the app and run it.