| sfa_pool | R Documentation |
Returns the candidate pool used by sfa_name(): the pre-filtered word
list (369,703 label-eligible terms with precomputed word-family and
dictionary-membership columns) together with its embedding matrix under
the given model. Pre-generated pools are downloaded once and cached;
for models without a pre-generated pool the word list is embedded
locally (slow without a GPU) and cached thereafter.
sfa_pool(
model,
precision = c("int8", "fp16"),
download = interactive(),
build = interactive(),
dir = NULL
)
model |
Embedding model id (as used by the |
precision |
|
download |
Permission to download missing artifacts. Defaults to
|
build |
Permission to embed the word list locally when no
pre-generated pool exists for |
dir |
Cache directory override (mainly for tests). |
An object of class sfa_pool: a list with words
(data.frame: word, family, tier1), emb (matrix-like, one row
per word, memory-mapped when read from disk), dim,
model, precision.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.