This is a simple and fast dictionary tool used to find words that exist in the dictionary from a piece of text. Simple Features: Pure PHP implementation, no need to install extensions. Fast: the time used for searching has little to do with the dictionary size (it is easy to query 0.4 million of the dictionary on my small dictionary). It will not load the entire dictionary at a time... this is a simple and fast dictionary tool used to find words that exist in the dictionary from a piece of text.
Features
Simple: Pure PHP implementation, no need to install extensions.
Fast: the time used for searching has little to do with the dictionary size (it is easy to query 0.4 million of the dictionary on my small dictionary). It will not load the entire dictionary at a time, the memory usage is small (that is, the memory usage is a bit expensive when the dictionary is generated ).
Https://github.com/nowgoo/dict/
Can I convert it to a python project, or does python already have such a project?
Reply content:
This is a simple and fast dictionary tool used to find words that exist in the dictionary from a piece of text.
Features
Simple: Pure PHP implementation, no need to install extensions.
Fast: the time used for searching has little to do with the dictionary size (it is easy to query 0.4 million of the dictionary on my small dictionary). It will not load the entire dictionary at a time, the memory usage is small (that is, the memory usage is a bit expensive when the dictionary is generated ).
Https://github.com/nowgoo/dict/
Can I convert it to a python project, or does python already have such a project?
If you want to perform word segmentation, you can consider stuttering word segmentation.
Https://github.com/fxsjy/jieba
Php2python