title: Is there a way to retrieve the whole noun chunk using a root token in spaCy?
body: <p>I'm very new to using spaCy. I have been reading the documentation for hours and I'm still confused if it's possible to do what I have in my question. Anyway...</p>
  
  <p>As the title says, is there a way to actually get a given noun chunk using a token containing it. For example, given the sentence:</p>
  
  <pre><code>"Autonomous cars shift insurance liability toward manufacturers"
  </code></pre>
  
  <p>Would it be possible to get the <code>"autonomous cars"</code> noun chunk when what I only have the <code>"cars"</code> token? Here is an example snippet of the scenario that I'm trying to go for.</p>
  
  <pre><code>startingSentence = "Autonomous cars and magic wands shift insurance liability toward manufacturers"
  doc = nlp(startingSentence)
  noun_chunks = doc.noun_chunks
  
  for token in doc:
      if token.dep_ == "dobj":
          print(child) # this will print "liability"
  
          # Is it possible to do anything from here to actually get the "insurance liability" token?
  </code></pre>
  
  <p>Any help will be greatly appreciated. Thanks!</p>