Skip to main content

Nature language to cron

Project description

中文自然语言转CRON

pip install nlp2cron

from nlp2cron import nlp2cron
cron = nlp2cron("每天10点25分叫我去买菜")

你会得到一个cron表达式. 目前代码写的有点乱, 但只要不太随意的自然语言都可以解决 代码里面有一些例子, 详细看代码啦. 代码写的比较随意, 如果要求高请不要用啦.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlp2cron-0.1.3.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

nlp2cron-0.1.3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page