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