View source: R/regions_multi.R
| sfa_reembed_region | R Documentation |
Takes a region's sentences (from sfa_build_region() or
sfa_build_regions(), including sentence-only regions built with
embeddings = FALSE) and embeds them under the given encoder, returning
a region in that encoder's space. This is how an encoder-ladder study
reuses one extraction: the regions differ only in embedding space, never
in text.
sfa_reembed_region(
region,
embed = "sbert",
model = NULL,
cache = TRUE,
file = NULL
)
region |
An |
embed, model, cache |
As in |
file |
Optional path to save the re-embedded region. |
The "sfa_region" with new embeddings and encoder.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.