distilNLP
distilNLP is a low-dependency, GPU-free natural language processing toolkit designed for building natural language processing applications and preprocessing for deep learning.
Install
pip install -U distilNLP
Usage
normalize
Normalize punctuation, remove unnecessary characters and invisible characters.
from distilnlp import normalize
norm_en = normalize('en', 'Proposed programme budget for the biennium 2006-2007: Section 29, Office of Internal Oversight Services。 ')
# got: 'Proposed programme budget for the biennium 2006-2007: Section 29, Office of Internal Oversight Services。'
norm_zh = normalize('zh', ' 2006-2007两年期拟议方案预算:第29款,内部监督事务厅.')
# got: '2006-2007两年期拟议方案预算:第29款,内部监督事务厅。'
norm_batch = normalize('en', ['Proposed programme budget for the biennium 2006-2007: Section 29, Office of Internal Oversight Services。 ',
'(b)🥇 Also decides to amend rule 22 of the rules of procedure accordingly, with effect from its third session, to read as follows:'
], n_job=-1)
# got: ['Proposed programme budget for the biennium 2006-2007: Section 29, Office of Internal Oversight Services。',
# '(b) Also decides to amend rule 22 of the rules of procedure accordingly, with effect from its third session, to read as follows:'
# ]
Metadata
Release files for distilNLP 0.0.4.20240125
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| distilNLP-0.0.4.20240125.tar.gz | 58.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| distilNLP-0.0.4.20240125-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 118.5 kB
Release files / distilNLP-0.0.4.20240125.tar.gz
| Download URL | distilNLP-0.0.4.20240125.tar.gz |
|---|---|
| Size | 58.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a208aad73ed8547034beb6c2b60e3967e3d071264cb8f96c7acdc9484027978b
|
|
BLAKE2b-256 checksum How to use checksums |
4ed3b6f8795604cc6b13ea78e805690211a36483d93f258bf6e18ef8355f919b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / distilNLP-0.0.4.20240125-py3-none-any.whl
| Download URL | distilNLP-0.0.4.20240125-py3-none-any.whl |
|---|---|
| Size | 60.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
297550a130c8da94aedb01e0e21e8d5c97847e9a106230fa33907647d9886d2c
|
|
BLAKE2b-256 checksum How to use checksums |
1fe9a322199587fdfe61e04022f2338029ced5ced4fde3b237403a098f24aa07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|