Skip to main content

From unstructured data to structured data.

Project description

Roseta

🧪 从「非结构化数据」到「结构化数据」!

如果需求多,就开始做,否则就慢慢推进~

  1. 欢迎「提需求」🎉;
  2. 欢迎「供数据」🎉。

1 快速上手

安装

pip install roseta

使用

from roseta import eat

## 转化身高
num, unit = eat("一米八")
# (180, 'cm')
num, unit = eat("1.8米", cls="height", unit="cm")
# (180.0, 'cm')
num, unit = eat("180厘米", unit="m")
# (1.8, 'm')

## 转化体重
num, unit = eat("一斤八")
# (0.9, 'kg')
num, unit = eat("1.8公斤", cls="weight", unit="kg")
# (1.8, 'kg')
num, unit = eat("180kg", unit="g")
# (180000, 'g')

2 许可

3 参考

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

roseta-0.1.0-py3-none-any.whl (6.8 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