title: Getting sense stems for nltk semcor corpus words
body: <p>I was trying semcor corpus in nltk.</p>
  <p>I found this code <a href="https://www.nltk.org/howto/corpus.html" rel="nofollow noreferrer">here</a>:</p>
  <pre><code>&gt;&gt;&gt; list(map(str, semcor.tagged_chunks(tag='both')[:3])) 
  ['(DT The)', &quot;(Lemma('group.n.01.group') (NE (NNP Fulton County Grand Jury)))&quot;, &quot;(Lemma('state.v.01.say') (VB said))&quot;]
  </code></pre>
  <p>I tried the same on colab (check last cell in <a href="https://colab.research.google.com/drive/16YaSo_m_WE3Wi11FpaQRYjWQ_flv1LzK#scrollTo=Qaivs-I5xodN&amp;line=1&amp;uniqifier=1" rel="nofollow noreferrer">this</a> notebook):</p>
  <pre><code>&gt;&gt;&gt; list(map(str, semcor.tagged_chunks(tag='both')[:3]))
  ['(DT The)',
   '(group.n.01 (NE (NNP Fulton County Grand Jury)))',
   '(say.v.01 (VB said))']
  </code></pre>
  <p>Here is the screenshot from colab:</p>
  <p><a href="https://i.stack.imgur.com/8SyN1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8SyN1.png" alt="enter image description here" /></a></p>
  <p><strong>The problem</strong></p>
  <p>Note that on nltk page, for <code>Fulton County Grand Jury</code> output is given as <code>Lemma('group.n.01.group')</code>, but on colab, I am getting <code>group.n.01</code>. So I am not getting sense / synset lemma.</p>
  <ul>
  <li>In <code>group.n.01.group</code>
  <ul>
  <li>first <code>group</code> is a &quot;stem for sense word&quot;</li>
  <li>last <code>group</code> is &quot;stem for input&quot;</li>
  </ul>
  </li>
  <li>In <code>group.n.01</code>
  <ul>
  <li>(first and only) <code>group</code> is &quot;stem for input&quot;</li>
  <li>no &quot;stem for sense word&quot; is returned</li>
  </ul>
  </li>
  </ul>
  <p>Weird thing is that it was giving me correct output yesterday. <a href="https://colab.research.google.com/drive/1Ua8OTpw273fFf0hcVU4VgtEFjfjAVzQN?usp=sharing" rel="nofollow noreferrer">This</a> notebook will clear the doubt as it has same two lines executed today and yesterday. Yesterday (2/9/2021), I was getting tags in format <code>group.n.01.group</code>, but today I am getting tags in <code>group.n.01</code> format (<strong>NOTICE RED AND BLUE COMMENTS</strong>):</p>
  <p><a href="https://i.stack.imgur.com/99jma.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/99jma.png" alt="enter image description here" /></a></p>
  <p>What I am missing here?</p>