7 instantiations of MatchCounter
Microsoft.Extensions.AI.Evaluation.NLP (7)
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));
Common\MatchCounter.cs (1)
59
var intersection = new
MatchCounter
<T>();
11 references to MatchCounter
Microsoft.Extensions.AI.Evaluation.NLP (11)
Common\BLEUAlgorithm.cs (2)
71
MatchCounter
<NGram<string>> hypCounts = new(hypGrams);
78
MatchCounter
<NGram<string>> refCounts = new(refGrams);
Common\F1Algorithm.cs (3)
27
MatchCounter
<string> referenceTokens = new(groundTruth);
28
MatchCounter
<string> predictionTokens = new(response);
29
MatchCounter
<string> commonTokens = referenceTokens.Intersect(predictionTokens);
Common\GLEUAlgorithm.cs (3)
28
MatchCounter
<NGram<string>> hypNGrams = new(hypothesis.CreateAllNGrams(minN, maxN));
34
MatchCounter
<NGram<string>> refNGrams = new(reference.CreateAllNGrams(minN, maxN));
37
MatchCounter
<NGram<string>> overlapNGrams = hypNGrams.Intersect(refNGrams);
Common\MatchCounter.cs (3)
56
public
MatchCounter
<T> Intersect(
MatchCounter
<T> other)
59
var
intersection = new MatchCounter<T>();