How to find maximum occured word from text?

Posted by Programmer's Goodies on November 2, 2011

I have a database field which contains string values. I need to find top 10 maximum occured words from the field var result = Regex.Matches(s, @"bw+b").OfType<Match>() .GroupBy(k => k.Value, (g, u) => new { Word = g, Count = u.Count() }) .OrderBy(n => n.Count) .Take(10); Check more discussion of

... [read more]

Rating

not rated

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.