title: How to use StanfordNLP Python package to do dependency parsing?
body: <p>I am trying to use the new NN-based parser at <a href="https://github.com/stanfordnlp/stanfordnlp" rel="nofollow noreferrer">here</a> to find all adjective phrases in a sentence (e.g., <code>good</code> and <code>extremely good</code> in <code>The weather is extremely good</code>), however, it's very lack of documentation and I could not get it working. My current code is</p>
  
  <pre><code>import stanfordnlp
  nlp = stanfordnlp.Pipeline()
  doc = nlp("The weather is extremely good")
  doc.sentences[0].print_dependencies()
  </code></pre>
  
  <p>which gives me</p>
  
  <pre><code>('The', '2', 'det')
  ('weather', '5', 'nsubj')
  ('is', '5', 'cop')
  ('extremely', '5', 'advmod')
  ('good', '0', 'root')
  </code></pre>
  
  <p>But it is not clear how to extract the information I need, as this does not seem to be a tree structure. Does anyone have an idea?</p>