ot;&quot;&quot;</span>
    <span class="n">token2label</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
    <span class="n">token2label</span><span class="p">[</span><span class="s2">&quot;[PAD]&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">token2label</span><span class="p">)</span>
    <span class="k">for</span> <span class="n">inp</span> <span class="ow">in</span> <span class="n">tokeniz