Collegues
I have a flat file with data in following structure.
(S1 (S (NP (NP (DT The) (JJ beautiful) (NN view)) (PP (IN of) (NP (JJ outside) (NNP greenery)))) (VP (VBZ adds) (NP (DT a) (NN tranquil) (NN touch)) (PP (TO to) (NP (DT this) (NN place)))) (. .)))
I have to extract the contents in ( NP ((( )))) and (VP ((( ))) and (PP ((( )),
That i have indiacted in bold.
First I have to extract the (NP (())
then
(VP ((( ))
then (PP (((()))
Any solution
With adavanced thanks and regards