title: how to extract only Noun Phrases from a sentence using stanford nlp in java?
body: <p>I got a tree format for a sentence(This is a Java Certification) using Stanford nlp in java as below</p>
  
  <pre><code>(ROOT
    (S
      (NP (DT This))
      (VP (VBZ is)
        (NP (DT a) (NNP Java) (NNP Certification)))))
  </code></pre>
  
  <p>Now,my requirement is to extract only Noun phrases using Stanford nlp in java from the above tree format.Please suggest me how to do this.</p>
  
  <p>Thanks  </p>