dren">









<div class="doc doc-object doc-function">



<h2 class="doc doc-heading" id="s4dd.smiles_utils.learn_label_encoding">
<code class="highlight language-python"><span class="n">learn_label_encoding</span><span class="p">(</span><span class="n">tokenized_inputs</span><span class="p">)</span></code>

</h2>


  <div class="doc doc-contents ">
  
      <p>Learn a label encoding from a tokenized dataset. The padding token, <code>"[PAD]"</code> is always assigned the label 0.</p>

  <p><strong>Parame