| foundry_grader_text_similarity | R Documentation |
Grade output text against a reference using a similarity metric such as
fuzzy matching, BLEU, ROUGE, or METEOR. A row passes when its score is at
least pass_threshold.
foundry_grader_text_similarity(
input,
reference,
pass_threshold,
evaluation_metric = c("fuzzy_match", "bleu", "gleu", "meteor", "rouge_1", "rouge_2",
"rouge_3", "rouge_4", "rouge_5", "rouge_l"),
name = NULL
)
input |
Character. Text being graded, typically |
reference |
Character. Reference text, typically |
pass_threshold |
Numeric. Score at or above which a row passes. |
evaluation_metric |
Character. One of |
name |
Character. Optional grader name. |
A named list describing a text_similarity grader.
foundry_grader_text_similarity(
input = "{{sample.output_text}}",
reference = "{{item.answer}}",
pass_threshold = 0.8,
evaluation_metric = "fuzzy_match"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.