コード例 #1
0
        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();
        }
コード例 #2
0
        public double GetIDF(string term)
        {
            var t = AggregateDocument.GetMatchTermByName(term);

            if (t == null)
            {
                return(0);
            }

            return(GetIDF(t));
        }