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.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-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: distilNLP-0.0.4.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.tar.gz
Algorithm Hash digest
SHA256 3719bf179b3b1a46d9787bef7fc530569a8c2aa7f6773cad90154a6ee437fb35
MD5 b678dc1d0de621c07becd113b3373371
BLAKE2b-256 f5025c1f27b2500648beda095bddcb560b5cc6fc2b0d299ec67668a2f0b0c86c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: distilNLP-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 60.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 07e7cc244884a86ead4b227ab1d254af328ad700dd5af6007c4c73eae4d70ba3
MD5 7a43b0e29226c199ead937840bf70278
BLAKE2b-256 ee3ae89db0db579809e0efc730e70292cf3eaf114f8c2af131cc8899f8083dfa

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