Skip to content

Commit

Permalink
deploy: 268dfa0
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay committed Jun 25, 2024
1 parent 1b63df2 commit fd70cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-reference/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
<dt class="sig sig-object py" id="mltb2.text.TextDistance.distance">
<span class="sig-name descname"><span class="pre">distance</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">text</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.12)"><span class="pre">float</span></a></span></span><a class="reference internal" href="../_modules/mltb2/text.html#TextDistance.distance"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#mltb2.text.TextDistance.distance" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the distance between the fitted text and the given text.</p>
<p>This implementation uses the Manhattan distance (<a class="reference external" href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.cityblock.html#scipy.spatial.distance.cityblock" title="(in SciPy v1.13.1)"><code class="xref py py-func docutils literal notranslate"><span class="pre">scipy.spatial.distance.cityblock()</span></code></a>).
<p>This implementation uses the Manhattan distance (<a class="reference external" href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.cityblock.html#scipy.spatial.distance.cityblock" title="(in SciPy v1.14.0)"><code class="xref py py-func docutils literal notranslate"><span class="pre">scipy.spatial.distance.cityblock()</span></code></a>).
The distance is only calculated for <code class="docutils literal notranslate"><span class="pre">max_dimensions</span></code> most commen characters.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
Expand Down

0 comments on commit fd70cbc

Please sign in to comment.