How do you get a dependency parse (not syntax tree) output from SyntaxNet (https://github.com/tensorflow/models/tree/master/syntaxnet) ? I see a description of dependency parsing...a description of how to train a model, but not how to get dependency parse output.
Does SyntaxNet (Specifically the Parsey McParseface model) even do dependency parsing out of the box?
Passing
--arg_prefix brain_parser
to theparser_eval.py
should do the trick. But this requires the tagged output to be fed as input.Here's an example where the first pass tags the words and the second pass resolves dependencies:
This generates the following output: