Skip to content

Add helpers and a vignette for Model2Vec and BPEmb embeddings - #360

Merged
EmilHvitfeldt merged 4 commits into
mainfrom
add-static-embeddings-vignette
Oct 20, 2026
Merged

EmilHvitfeldt merged 4 commits into
mainfrom
add-static-embeddings-vignette

Conversation

@EmilHvitfeldt

Copy link
Copy Markdown
Member

Model2Vec and BPEmb are static embeddings, so they already work with step_word_embeddings() once they are in the right table and the text is tokenized to match. This adds helpers to download and read their files into that table, and a vignette with the matching recipes. The vignette code downloads models, so its chunks are not evaluated when it is built.

Part of #303.

read_embeddings_model2vec() and read_embeddings_bpemb() turn downloaded files into the tibble that step_word_embeddings() takes as embeddings.
Link it from the step_word_embeddings() documentation.
@EmilHvitfeldt
EmilHvitfeldt merged commit b1d260c into main Oct 20, 2026
14 checks passed
@EmilHvitfeldt
EmilHvitfeldt deleted the add-static-embeddings-vignette branch October 20, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant