Skip to main content

distilNLP is a low-dependency, GPU-free natural language processing toolkit.

Project description

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:'
#      ]

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

distilNLP-0.0.4.20240125.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

distilNLP-0.0.4.20240125-py3-none-any.whl (60.3 kB view details)

Uploaded Python 3

File details

Details for the file distilNLP-0.0.4.20240125.tar.gz.

File metadata

  • Download URL: distilNLP-0.0.4.20240125.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for distilNLP-0.0.4.20240125.tar.gz
Algorithm Hash digest
SHA256 a208aad73ed8547034beb6c2b60e3967e3d071264cb8f96c7acdc9484027978b
MD5 858a006310e90ebcc650901d253dcb96
BLAKE2b-256 4ed3b6f8795604cc6b13ea78e805690211a36483d93f258bf6e18ef8355f919b

See more details on using hashes here.

File details

Details for the file distilNLP-0.0.4.20240125-py3-none-any.whl.

File metadata

File hashes

Hashes for distilNLP-0.0.4.20240125-py3-none-any.whl
Algorithm Hash digest
SHA256 297550a130c8da94aedb01e0e21e8d5c97847e9a106230fa33907647d9886d2c
MD5 7d7292af40fbaf63ce8101a3f7098f5e
BLAKE2b-256 1fe9a322199587fdfe61e04022f2338029ced5ced4fde3b237403a098f24aa07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page