kkx / pyTrie

A c++ trie implementation with Boost+python binding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A c++ Trie implementation 'inspired' from this blog:

g++ -o test test.cpp trie.h

A boost+python binding example is shown here also. There are 3 files involved:

trieClasses.C, Makefile, testTrieClasses.py

In Makefile the python version should be ajusted properly.

make && python testTrieClasses.py

Chinese words(3 bytes) are treated byte to byte to accelerate the search speed.

doc.txt: a test text

dictionary.txt: dictionary of word to be included in the Trie for future fast search

About

A c++ trie implementation with Boost+python binding


Languages

Language:C++ 96.4%Language:Python 3.6%