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.20240124.tar.gz (58.4 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.20240124-py3-none-any.whl (60.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: distilNLP-0.0.4.20240124.tar.gz
  • Upload date:
  • Size: 58.4 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.20240124.tar.gz
Algorithm Hash digest
SHA256 c1d8a77b31c9cc407885981b0dd552df591f768d919ee2fc5219c05744ff10f3
MD5 cc4f614b78e18988a4d72227dd59b3d1
BLAKE2b-256 c8af78cbb9698ec4c287f446fb1f728cd3bebcfdc036dd8e79a0c4723bd30519

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for distilNLP-0.0.4.20240124-py3-none-any.whl
Algorithm Hash digest
SHA256 fad3263cbb2a7fce49b41654b7d2d244245ad0b1c02088d62d8580e10de7c5da
MD5 5cdfd93789c0a4a8fcc8edba222c19cd
BLAKE2b-256 ec8f77ff6eb23ca3b08415ef137efd7d4725fd6cb32f260c27f9b9fd865a8eba

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