BLEUEvaluatorContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contextual information that the BLEUEvaluator uses to compute the BLEU score for a response.
public ref class BLEUEvaluatorContext sealed : Microsoft::Extensions::AI::Evaluation::EvaluationContext
public sealed class BLEUEvaluatorContext : Microsoft.Extensions.AI.Evaluation.EvaluationContext
type BLEUEvaluatorContext = class
inherit EvaluationContext
Public NotInheritable Class BLEUEvaluatorContext
Inherits EvaluationContext
- Inheritance
Remarks
BLEUEvaluator measures the BLEU score of a response compared to one or more reference responses supplied via References. BLEU (Bilingual Evaluation Understudy) is a metric used to evaluate the quality of machine-generated text.
Constructors
BLEUEvaluatorContext(IEnumerable<String>) |
Initializes a new instance of the BLEUEvaluatorContext class. |
BLEUEvaluatorContext(String[]) |
Initializes a new instance of the BLEUEvaluatorContext class. |
Properties
Contents |
Gets or sets a list of AIContent objects that include all the information present in this EvaluationContext. (Inherited from EvaluationContext) |
Name |
Gets or sets the name for this EvaluationContext. (Inherited from EvaluationContext) |
References |
Gets the references against which the provided response will be scored. |
ReferencesContextName |
Gets the unique Name that is used for BLEUEvaluatorContext. |