title: Typed Dependency Parsing in NLTK Python
body: <p>I have a sentence</p>
  
  <pre><code>"I shot an elephant in my sleep"
  </code></pre>
  
  <p>The typed dependency of the sentence is </p>
  
  <pre><code>nsubj(shot-2, I-1)
  det(elephant-4, an-3)
  dobj(shot-2, elephant-4)
  prep(shot-2, in-5)
  poss(sleep-7, my-6)
  pobj(in-5, sleep-7)
  </code></pre>
  
  <p>How do I get the typed dependency using Stanford Parser (or any parser) using NLTK (preferably, but anthing is fine) in Python ? </p>
  
  <p>Note - I know it is very similar to <a href="https://stackoverflow.com/questions/7443330/how-do-i-do-dependency-parsing-in-nltk">this question</a>. But no good answers exist. </p>