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