How to get constituency-based parse tree from Parsey McParseface
Asked Answered
P

1

6

Parsey McParsey returns a dependency-based parse tree by default, but is their a way to get a constituency-based parse tree from it?

EDIT: To clarify, by "to get from it" I mean from the Parsey itself. Though building a tree from ConLL output would be an option too.

Plainsong answered 22/5, 2016 at 14:33 Comment(1)
Related: https://mcmap.net/q/1915321/-ptb-treebank-from-conll-xByelostok
A
3

I have investigated this, and I believe that the answer is that you cannot get a constituency parse directly from Parsey McParseface or any other syntaxnet model.

Constituency parses are fundamentally different from dependency parses, and syntaxnet is designed to produce dependency parses. Indeed, the CoNLL format that syntaxnet gives output in is not even capable of representing a constituency parse tree:

The HEAD and DEPREL fields are used to encode a dependency tree over words

Aftercare answered 18/1, 2017 at 15:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.