6 references to new
Microsoft.Extensions.AI.Evaluation.NLP (6)
Common\BLEUAlgorithm.cs (2)
71
MatchCounter<NGram<string>> hypCounts =
new
(hypGrams);
78
MatchCounter<NGram<string>> refCounts =
new
(refGrams);
Common\F1Algorithm.cs (2)
27
MatchCounter<string> referenceTokens =
new
(groundTruth);
28
MatchCounter<string> predictionTokens =
new
(response);
Common\GLEUAlgorithm.cs (2)
28
MatchCounter<NGram<string>> hypNGrams =
new
(hypothesis.CreateAllNGrams(minN, maxN));
34
MatchCounter<NGram<string>> refNGrams =
new
(reference.CreateAllNGrams(minN, maxN));