title: How to extract the noun and its corresponding adjective from the output of stanford parser
body: <p>I am getting the following output using the <strong>Stanford Core-NLP parser</strong>. Now how can i extract a noun and its corresponding adjective or any required info <strong>related to that particular noun</strong> from the output. I want that all the nouns should be extracted along with their adjectives in order, so that i know which adjective is related to which noun in the text</p>
  
  <p>For example:</p>
  
  <p>I need to extract the noun "Santosh" and its corresponding adjective "handsome" from the below output</p>
  
  <pre><code>nn(Santosh-2, Kosgi-1)
  nsubj(handsome-4, Santosh-2)
  cop(handsome-4, is-3)
  root(ROOT-0, handsome-4)
  aux(sent-6, has-5)
  rcmod(handsome-4, sent-6)
  det(email-8, an-7)
  dobj(sent-6, email-8)
  nn(University-11, Stanford-10)
  prep_to(sent-6, University-11 
  </code></pre>