public void Add(DocumentBlenderFunctionOptions scope, Boolean contained) { if (!TermFrequencyByScope.ContainsKey(scope)) { TermFrequencyByScope.Add(scope, 0); } if (contained) { TermFrequencyByScope[scope]++; } }
public void Add(DocumentBlenderFunctionOptions scope, Double __score, Boolean sumValue = true) { if (!TermFrequencyByScope.ContainsKey(scope)) { TermFrequencyByScope.Add(scope, 0); } if (sumValue) { TermFrequencyByScope[scope] += __score; } else { TermFrequencyByScope[scope] = __score; } }