de> and you are ready.</p>
<pre><code class="hljs css r"><span class="hljs-comment">## Build document term matrix on nouns/adjectives only</span>
dtf &lt;- subset(x, upos %<span class="hljs-keyword">in</span>% c(<span class="hljs-string">"NOUN"</span>, <span class="hljs-string">"ADJ"</span>) &amp; 
                !lemma %<span class="hljs-keyword">in</span>% c(<span class="hljs-string">"appartement"</span>, <span class="hljs-string">"appart"</span>, <span class="hljs-string">"eter"</span>, <span class="hlj