Description Usage Arguments Value Author(s) Examples
To run embeddings with a specific language, you must first download the respective language file. This needs to be done only once. As the raw files are quite large (over 6GB), this function grabs only the most frequent words. You can control the number of words by setting the number of megabytes to download.
1 | ft_download_model(lang = "en", mb = 500, location = NULL)
|
lang |
the two letter language code
specifying the language you would
like to download. See the function
|
mb |
the number of megabytes to download
from the file. The default (500) gets
around 200k rows. Adjust as needed.
Set to |
location |
Path to directory where models should be saved. Defaults to the directory where the package is installed. |
Invisibly returns the status code of the download. The embedding matrix is stored on disk.
Taylor B. Arnold, taylor.arnold@acm.org
1 2 3 4 | ## Not run:
ft_download_model(lang = "zh", mb = 200)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.