get_ft: Download fastText word embeddings from the internet

View source: R/rectr.R

get_ftR Documentation

Download fastText word embeddings from the internet

Description

This function downloads fastText word embeddings from the internet, trims the embeddings and saves as an R serialized object.

Usage

get_ft(lang = "en", topwords = 2e+05)

Arguments

lang

character, which language of fastText word embeddings to download, e.g. "en"

topwords

integer, trim the word embeddings based on the most frequent words, default to top 200000 words

Value

Nothing, a file is saved.


chainsawriot/rectr documentation built on July 30, 2023, 2:30 p.m.