I have a set of offers that have been pre-processed by Stanford CoreNLP systems. One of the things he provides is the Parse Tree proposal (group based). Although I can understand the parse tree when drawing (for example, a tree), I'm not sure how to read it in this format:
eg:.
(ROOT (FRAG (NP (NN sent28)) (: :) (S (NP (NNP Rome)) (VP (VBZ is) (PP (IN in) (NP (NP (NNP Lazio) (NN province)) (CC and) (NP (NP (NNP Naples)) (PP (IN in) (NP (NNP Campania)))))))) (. .)))
Original offer:
sent28: Rome is in Lazio province and Naples in Campania .
How should I read this tree, or, alternatively, is there code (in python) that does this correctly? Thanks.
source share