0

I used pystatParser to generate each parse tree for a English sentence. Example output (just an example):

(NP+S (NP (DT every) (NN cat)) (VP (VB loves) (NP (DT a) (NN dog))))

How to convert every output into the below style:

(S (NP (DET Every) (NN cat)) (VP (VT loves) (NP (DET a) (NN dog))))

Thanks!

Chelsea_cole
  • 1,055
  • 3
  • 15
  • 21
  • It seems to me you have to follow a simple mapping process, e.g. DT->DET, VB->VT etc. What is the problem? – dkar Jul 24 '16 at 12:26
  • I want to modify the output of the Parser i mentioned, but i dont know how to do that. – Chelsea_cole Jul 24 '16 at 14:51
  • If all you want is to change the POS labels, these are defined in stat_parser/treebanks/parse.py. – dkar Jul 24 '16 at 15:27

0 Answers0