| fill_mask | R Documentation |
This function is only for technical check. Please use FMAT_run() for general purposes.
fill_mask(query, model, targets = NULL, topn = 5, gpu)
fill_mask_check(query, models, targets = NULL, topn = 5, gpu)
query |
Query sentence with mask token. |
model, models |
Model name(s). |
targets |
Target words to fill in the mask.
Defaults to |
topn |
Number of the most likely predictions to return. Defaults to |
gpu |
Use GPU (3x faster than CPU) to run the fill-mask pipeline? Defaults to missing value that will automatically use available GPU (if not available, then use CPU). An NVIDIA GPU device (e.g., GeForce RTX Series) is required to use GPU. See Guidance for GPU Acceleration. Options passing on to the
|
A data.table of raw results.
fill_mask(): Check performance of one model.
fill_mask_check(): Check performance of multiple models.
## Not run:
query = "Paris is the [MASK] of France."
models = c("bert-base-uncased", "bert-base-cased")
d.check = fill_mask_check(query, models, topn=2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.