Php script to python script

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.