Assume that I have the following string:
"present present present presenting presentation do do doing "
And I’m counting the words inside the string according to their frequency in descending order:
I'm using GroupBy count
present 3
do 2
doing 1
presenting 1
presentation 1
Then, I’m stemming the words:
using array [ , ] or any other structure
present 3
do 2
do 1
present 1
present 1
Finally, I want to recount the words into dictionary. So that the output should be:
present 5
do 3
Can anyone help please??. thanks in advance.
//Using List instead of Dictionary to allow keys multiplicity:
List> words = new List< KeyValuePair>();