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!