="k">if</span> <span class="n">length</span> <span class="o">==</span> <span class="n">TermExtraction</span><span class="o">.</span><span class="n">config</span><span class="p">[</span><span class="s2">&quot;MAX_WORD_LENGTH&quot;</span><span class="p">]:</span>
            <span class="n">c_val</span> <span class="o">=</span> <span class="n">math</span><span class="o">.</span><span class="n">log2</span><span class="p">(</span><span class="n">length</span> <span class="o">+</span> <span class="n">smoothing</