Wednesday, January 28, 2009

Counting frequent words in Boost

Counting frequent words contained in a file is a quite common operation.
It is surprisingly easy if you adopt Boost::Unordered_map and Boost::Tokenizer.
Here you have an example of code

No comments:

Post a Comment