Milleniumlegend
IS-IT--Management
- Dec 16, 2003
- 135
Could someone please help me. I am trying to count tokens from a vector and then assign the most common tokens with a mark.
e.g. What is what of what.
this is a sentence in the Vector<string>
I have tokenized the string into a vector containing each word. Now i need to traverse through the Vector and find count for each word and their frequency.
e.g. what is occuring 3 times. and it will have a mark of 1/3
and is occuring once so it will have a mark of 1/1
and so on.
Could someone shed some light on how I can do that using a vector.
Many thanks
Arun
e.g. What is what of what.
this is a sentence in the Vector<string>
I have tokenized the string into a vector containing each word. Now i need to traverse through the Vector and find count for each word and their frequency.
e.g. what is occuring 3 times. and it will have a mark of 1/3
and is occuring once so it will have a mark of 1/1
and so on.
Could someone shed some light on how I can do that using a vector.
Many thanks
Arun