private float Score(List <string> tokenizedDoc, DocsGroup group)
 {
     return((float)Math.Log(group.Proportion) +
            tokenizedDoc
            .Select(x => TokenScore(@group, x))
            .Sum());
 }
        private float TokenScore(DocsGroup group, string token)
        {
            if (group.TokenFrequencies.ContainsKey(token))
            {
                return((float)Math.Log(group.TokenFrequencies[token]));
            }

            return(0.0f);
        }