10 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)
27MatchCounter<NGram<string>> hypNGrams = new(hypothesis.CreateAllNGrams(minN, maxN)); 36MatchCounter<NGram<string>> refNGrams = new(reference.CreateAllNGrams(minN, maxN));
Microsoft.Extensions.AI.Evaluation.NLP.Tests (4)
MatchCounterTests.cs (4)
24var counter = new MatchCounter<string>(new[] { "a", "b", "a", "c", "b", "a" }); 61var counter = new MatchCounter<string>(new[] { "x", "y", "x" }); 70MatchCounter<int> counter1 = new(new[] { 1, 2, 2, 3 }); 71MatchCounter<int> counter2 = new(new[] { 2, 2, 4 });