7 references to ArgumentNullException
Microsoft.Extensions.AI.Evaluation.NLP (7)
Common\BLEUAlgorithm.cs (3)
144
Throw.
ArgumentNullException
(nameof(references), $"'{nameof(references)}' cannot be null or empty.");
149
Throw.
ArgumentNullException
(nameof(hypothesis), $"'{nameof(hypothesis)}' cannot be null or empty.");
159
Throw.
ArgumentNullException
(nameof(weights), $"'{nameof(weights)}' cannot be empty.");
Common\F1Algorithm.cs (2)
19
Throw.
ArgumentNullException
(nameof(groundTruth), $"'{nameof(groundTruth)}' cannot be null or empty.");
24
Throw.
ArgumentNullException
(nameof(response), $"'{nameof(response)}' cannot be null or empty.");
Common\GLEUAlgorithm.cs (2)
20
Throw.
ArgumentNullException
(nameof(references), $"'{nameof(references)}' cannot be null or empty.");
25
Throw.
ArgumentNullException
(nameof(hypothesis), $"'{nameof(hypothesis)}' cannot be null or empty.");