---
id: texthero.representation.nmf
title: representation.nmf
hide_title: true
---

<div>
<div class="section" id="texthero-representation-nmf">
<h1>texthero.representation.nmf<a class="headerlink" href="#texthero-representation-nmf" title="Permalink to this headline">¶</a></h1>
<dl class="py function">
<dt id="texthero.representation.nmf">
<code class="sig-name descname">nmf</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">s</span></em>, <em class="sig-param"><span class="n">n_components</span><span class="o">=</span><span class="default_value">2</span></em><span class="sig-paren">)</span><a class="headerlink" href="#texthero.representation.nmf" title="Permalink to this definition">¶</a></dt>
<dd><p>Perform non-negative matrix factorization.</p>
</dd></dl>
</div>
</div>