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.4.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nlp2cron-0.1.4.tar.gz.
File metadata
- Download URL: nlp2cron-0.1.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.6 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa158dcd73d21ed8b2f6dbbaac8e4c5b63416f71340e33ae37a839f47e48cedf
|
|
| MD5 |
d5a471e2be5363f1e980e4785487501e
|
|
| BLAKE2b-256 |
cbfef97138c13e49edaa6b6f2d6eb6f665093410a3dff00ea5e2f3d7ca64902a
|
File details
Details for the file nlp2cron-0.1.4-py3-none-any.whl.
File metadata
- Download URL: nlp2cron-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.6 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4364b598fcd28c70d4a2fd7ac7728ec370862f62c86f7b3cd159036f04c88907
|
|
| MD5 |
f0008eb958daefb8326f263337c31b14
|
|
| BLAKE2b-256 |
8b2b2d7f1d4bb156b08a0adfb66a93b77de8b826c22d45cc52de7cfc372d3cfd
|