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