Share via


GLEUEvaluatorContext Class

Definition

Contextual information that the GLEUEvaluator uses to compute the GLEU score for a response.

public ref class GLEUEvaluatorContext sealed : Microsoft::Extensions::AI::Evaluation::EvaluationContext
public sealed class GLEUEvaluatorContext : Microsoft.Extensions.AI.Evaluation.EvaluationContext
type GLEUEvaluatorContext = class
    inherit EvaluationContext
Public NotInheritable Class GLEUEvaluatorContext
Inherits EvaluationContext
Inheritance
GLEUEvaluatorContext

Remarks

GLEUEvaluator measures the GLEU score of a response compared to one or more reference responses supplied via References. GLEU (Google-BLEU) is a metric used to evaluate the quality of machine-generated text.

Constructors

GLEUEvaluatorContext(IEnumerable<String>)

Initializes a new instance of the GLEUEvaluatorContext class.

GLEUEvaluatorContext(String[])

Initializes a new instance of the GLEUEvaluatorContext 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 GLEUEvaluatorContext.

Applies to