Skip to main content

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.20240124

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for distilNLP 0.0.4.20240124
File Size Uploaded
distilNLP-0.0.4.20240124.tar.gz 58.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for distilNLP 0.0.4.20240124
File Interpreter ABI Platform
distilNLP-0.0.4.20240124-py3-none-any.whl Python 3 none any Details

Total release size: 118.9 kB

Release files / distilNLP-0.0.4.20240124.tar.gz

Download URL distilNLP-0.0.4.20240124.tar.gz
Size 58.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c1d8a77b31c9cc407885981b0dd552df591f768d919ee2fc5219c05744ff10f3
BLAKE2b-256 checksum
How to use checksums
c8af78cbb9698ec4c287f446fb1f728cd3bebcfdc036dd8e79a0c4723bd30519
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.20240124-py3-none-any.whl

Download URL distilNLP-0.0.4.20240124-py3-none-any.whl
Size 60.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fad3263cbb2a7fce49b41654b7d2d244245ad0b1c02088d62d8580e10de7c5da
BLAKE2b-256 checksum
How to use checksums
ec8f77ff6eb23ca3b08415ef137efd7d4725fd6cb32f260c27f9b9fd865a8eba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

0.0.6

2 release files

0.0.5

2 release files

This release

0.0.4.20240124 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page