private double TFIDF(IEnumerable <string> words, Document doc) { var TFIDFEvaluator = new TFIDF(documents, doc); return(words .Select(word => TFIDFEvaluator.Evaluate(word)) .Sum()); }