pytries / marisa-trie

Static memory-efficient Trie-like structures for Python based on marisa-trie C++ library.
https://marisa-trie.readthedocs.io/en/latest/
MIT License
1.03k stars 91 forks source link

possible to add keys? #35

Closed dylanbfox closed 7 years ago

dylanbfox commented 7 years ago

Is it possible to add keys to the Trie after its been created? I've seen the restore facility (eg: trie.restore_key(1)) and looked into the source but haven't seen anything offering this. Something like

t = Trie([u'one']) t._add_key(u'two')

kmike commented 7 years ago

No, it is not possible.