Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get constituency-based parse tree from Parsey McParseface

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.

like image 752
maga Avatar asked Oct 19 '22 09:10

maga


1 Answers

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

like image 55
Roko Mijic Avatar answered Oct 21 '22 12:10

Roko Mijic