">TfidfVectorizer</a><a id="TfidfVectorizer-1"></a><a class="docs-heading-anchor-permalink" href="#TfidfVectorizer" title="Permalink"></a></h3><p>Converts a collection of raw documents to a matrix of TF-IDF features.</p><pre><code class="language-julia hljs">tfidf = TfidfVectorizer()

result = tfidf(docs)
tfidf.vocabulary
tfidf(result, type=:inverse)

new_docs = [&quot; The talk on the Unreasonable Effectiveness of Multiple Dispatch explains why it works so well.&quot;]
Xnew = tfidf(new_docs)
</code></pre><