How can I obtain all the chunk from a sentence given a pattern. Exemple
NP:{<NN><NN>}
Sentence tagged:
[("money", "NN"), ("market", "NN") ("fund", "NN")]
If I parse I obtain
(S (NP money/NN market/NN) fund/NN)
I would like to have also the other alternative that is
(S money/NN (NP market/NN fund/NN))