public double GetBDFreq(string term) { var t = AggregateDocument.GetMatchTermByName(term); if (t == null) { return(0); } return(Enumerable.Count <KeyValuePair <IWeightTable, int> >(counter[t]));// termADF[t].Count(); }
public double GetIDF(string term) { var t = AggregateDocument.GetMatchTermByName(term); if (t == null) { return(0); } return(GetIDF(t)); }