I am parsing a sentence for tokens and storing them in a vector. I would like to use STL for finding out the top 3 tokens (length based) extracted and stored in my vector. Tokens of the same length will be counted as one category. I also need to print the equal sized tokens in the order they were extracted.
Please let me know a short and concise way to do this.
Please let me know a short and concise way to do this.
Comment