Install SyntaxNet on Windows 10 - xzhaos/miscellaneous GitHub Wiki
Google has introduced SyntaxNet for depedent parsing (https://github.com/tensorflow/models/tree/master/research/syntaxnet). However in the instruction, it only specifies for Ubuntu and MacOS. Here is the missing instructions for installation on Windows 10.
- Make sure you have installed latest Windows 10 release with creator update.
- Install Ubuntu on Windows feature (https://msdn.microsoft.com/en-us/commandline/wsl/about)
- The installed version is 16.04 but the one required by SyntaxNet is 16.10+. for that, we need to upgrade the Ubuntu. Open the Ubuntu Shell and type in:
sudo do-release-upgrade -p(this will take a while) - when done, you can check the version of the Ubuntu by typing in:
me@dev:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 17.04 Release: 17.04 Codename: zesty me@dev:~$
- run
sudo apt-get install -y graphviz libgraphviz-dev libopenblas-base libpng16-16 libxft2 python-pip python-mock
Install the python 2.7 if there is no python installed.
- run
pip install pygraphviz --install-option="--include-path=/usr/include/graphviz" --install-option="--library-path=/usr/lib/graphviz/" - run
pip install 'ipython<6.0' protobuf numpy scipy jupyter - download the syntaxnet wheel file from pypi: https://pypi.python.org/pypi/syntaxnet-with-tensorflow/0.2
- install the wheel:
sudo pip install syntaxnet_with_tensorflow-0.2-cp27-cp27mu-manylinux1_x86_64.whl --install-option="--include-path=/usr/include/graphviz" --install-option="--library-path=/usr/lib/graphviz/"