Installation of TensorFlow Syntaxnet
Before installing, make sure that Ubuntu, Python, TensorFlow, and some of the appropriate packages are installed successfully.
1. Installing Syntaxnet
# (1) Pip
$ sudo apt-get install python-virtualenv
# (2) PIP3
$ sudo apt-get install python3-virtualenv
2. Create the TensorFlow environment in Virtualenv
$ virtualenv--system-sit-packages ~/tensorflow
3. Activating the TensorFlow virtualenv environment
$ source ~/tensorflow/bin/activate
# (1) Pip
(tensorflow) $ pip Install--upgrade https://storage.googleapis.com/tensorflow/linux/cpu/ Tensorflow-0.8.0-cp27-none-linux_x86_64.whl
# (2) PIP3
(tensorflow) $ pip3 Install--upgrade https://storage.googleapis.com/tensorflow/linux/cpu/ Tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
4. Test TensorFlow
Import TensorFlow
5. Installing Protobuf/asciitree/numpy
$ pip Freeze | -u protobuf==3.0. 0b2$ pip install asciitree$ pip install NumPy
6. Configure Syntaxnet
Note This section must be performed in VIRTUALENV * * *
(TensorFlow) $ git clone--recursive https://github.com/tensorflow/models.git (tensorflow) $ CD Models/ syntaxnet/TensorFlow (TensorFlow) $. /Configure (TensorFlow) $ CD. (tensorflow) $ Bazel test syntaxnet/... util/utf8/...
* * Fully passed tests**
7. Test Syntaxnet
' Bob brought the pizza to Alice. ' | syntaxnet/demo.sh
Installation and use of TensorFlow syntaxnet