Installation and use of TensorFlow syntaxnet

Source: Internet
Author: User
Tags virtualenv git clone

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.