Skip to contents

Builds a TF-IDF vocabulary from a corpus and returns an embedder that can embed new texts into that vocabulary space. No external API required.

Usage

embed_tfidf(corpus)

Arguments

corpus

Character vector of documents to build vocabulary from.

Value

A securecontext_embedder object.

Examples

emb <- embed_tfidf(c("the cat sat", "the dog ran"))