chunkyp-0.0.2
توضیحات
Ray-based preprocesisng pipeline.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chunkyp-0.0.2 |
| نام | chunkyp |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Neo Phocion |
| ایمیل نویسنده | neophocion@protonmail.com |
| آدرس صفحه اصلی | https://github.com/neophocion/chunkyp |
| آدرس اینترنتی | https://pypi.org/project/chunkyp/ |
| مجوز | apache-2.0 |
# chunkyp
A small and concise data preprocessing library inspired by common NLP preprocessing workflows.
Supports [ray](https://github.com/ray-project/ray).
## Installation
chunkyp is available on PyPi.
```bash
pip install chunkyp
```
For the dev version you can run the following.
```bash
git clone https://github.com/neophocion/chunkyp
cd chunkyp
pip install -e .
```
## Usage
The simplest way to get started is to look at the Jupyter notebooks in [`notebooks/`](https://github.com/neophocion/chunkyp/tree/master/notebooks)
A small example:
```python
from chunkyp import
res = pipe(
records, # a list, or iterator across, dicts
p('field', lambda x: x.lower()),
p('field', lambda x: x.upper(), 'new_field'),
p(['field1', 'field2'], lambda x,y: len(x.split()) == y, 'new_field2'),
)
res = list(res)
res
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.8.6 | ray |
| >=5.7.0 | psutil |
| - | pytest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5, <4 | Python |
نحوه نصب
نصب پکیج whl chunkyp-0.0.2:
pip install chunkyp-0.0.2.whl
نصب پکیج tar.gz chunkyp-0.0.2:
pip install chunkyp-0.0.2.tar.gz