Esempio n. 1
0
 public void Add(DocumentBlenderFunctionOptions scope, Boolean contained)
 {
     if (!TermFrequencyByScope.ContainsKey(scope))
     {
         TermFrequencyByScope.Add(scope, 0);
     }
     if (contained)
     {
         TermFrequencyByScope[scope]++;
     }
 }
Esempio n. 2
0
 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;
     }
 }