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.3.tar.gz (58.1 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.3-py3-none-any.whl (60.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: distilNLP-0.0.3.tar.gz
  • Upload date:
  • Size: 58.1 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.3.tar.gz
Algorithm Hash digest
SHA256 d9b7fb91d5594021a84dd0766c4becb54906d396faf535f765b898735b7ef7a0
MD5 eb92c6c9f33d7498864e0e9b2086ea12
BLAKE2b-256 436e2e5c49ccb77161699f41011bb41c8bd0780939932379a08f19f66994e62b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: distilNLP-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 60.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for distilNLP-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 333961559fe23b8061d3cc0ea98cb39ad516ad898ebf0d4e0aed714b71489937
MD5 29b8853beb15e9ccf4e4aae5dafdd814
BLAKE2b-256 3dc3a9fe82de64206f64f6a488d9ee1838e3d7143fafef501c765435c1c7721e

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