Saturday, 14 May 2016

On 04:44 by Himanshu Joshi in ,    No comments

SyntaxNet: Neural Models of Syntax.

Installation

Running and training SyntaxNet models requires building this package from source. You'll need to install:
  • bazel:
    • follow the instructions here
    • Note: You must use bazel version 0.2.2, NOT 0.2.2b, due to a WORKSPACE issue
  • swig:
    • apt-get install swig on Ubuntu
    • brew install swig on OSX
  • protocol buffers, with a version supported by TensorFlow:
    • check your protobuf version with pip freeze | grep protobuf1
    • upgrade to a supported version with pip install -U protobuf==3.0.0b2
  • asciitree, to draw parse trees on the console for the demo:
    • pip install asciitree
Once you completed the above steps, you can build and test SyntaxNet with the following commands:
  git clone --recursive https://github.com/tensorflow/models.git
  cd models/syntaxnet/tensorflow
  ./configure
  cd ..
  bazel test syntaxnet/... util/utf8/...
  # On Mac, run the following:
  bazel test --linkopt=-headerpad_max_install_names \
    syntaxnet/... util/utf8/...
Bazel should complete reporting all tests passed.

0 comments:

Post a Comment