pan></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</section>
<section id="train-a-topic-model-1" class="slide level2" data-background-color="white">
<h2>Train a topic model</h2>
<p>Use a sparse matrix or a <code>quanteda::dfm</code> object as input</p>
<div class="cell" data-hash="03-topic-models_cache/revealjs/unnamed-chunk-9_fa6c6a2af3959262c64a08d5596a8cd8">
<div class="sourceCode cell-code" id="cb8"><pre class="sourceCode numberSource r 