Closed dongyuwei closed 5 years ago
marisa-trie uses the weights to arrange trie nodes for optimization and does not keep the weights.
It requires much memory to keep the weights, and thus marisa-trie does not keep.
Okay, thank you for your reply.
hi @s-yata Thank you for your excellent
marisa-trie
.I have a question, hope you can give some help or hint: The document on http://s-yata.github.io/marisa-trie/docs/readme.en.html has this description:
I'm wonder if marisa-trie can keep the original predefined weight of a special key? I mean not the updated
weight
.Can
marisa-trie
provide another api to get the original predefined weight? That will be very helpful for many use-cases, eg: a word with predefined frequency as the weight in a large words dictionary.