C++ port of the Python NLTK