NLTK: How can I extract information based on sentence maps?
<p>I know you can use noun extraction to get nouns out of sentences but how can I use sentence overlays/maps to take out phrases?</p>

<p><strong>For example:</strong></p>

<blockquote>
  <p><strong>Sentence Overlay:</strong> </p>

<pre><code>"First, @action; Second, Foobar"
</code></pre>
  
  <p><strong>Input:</strong> </p>

<pre><code>"First, Dance and Code; Second, Foobar"
</code></pre>
  
  <p><strong>I want to return:</strong> </p>

<pre><code>action = "Dance and Code"
</code></pre>
</blockquote>

<ul>
<li>Normal Noun Extractions wont work because it wont always be nouns</li>
<li>The way sentences are phrased differs so it cant be words[x] ... because the positioning of the words changes</li>
</ul>