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 = normalize('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 = normalize(' 2006-2007两年期拟议方案预算:😇第29款,内部监督事务厅.')
# got: '2006-2007两年期拟议方案预算:第29款,内部监督事务厅。'

norm = normalize('百度的网址是:  http://baidu.com')
# got: '百度的网址是: http://baidu.com'

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for distilNLP-0.0.5.tar.gz
Algorithm Hash digest
SHA256 470f44e05ea27a34949de739060cd99e2a84196df9b52b8bb6bcbf298487bd3b
MD5 2974ff14bdeeab6959a8647d9f8f3954
BLAKE2b-256 0f92fe59bceb6d0bfb5a165e2447c51f768bdefc56e7a7a7779c497d1da79e60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: distilNLP-0.0.5-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.7

File hashes

Hashes for distilNLP-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b69a4d0a0e76ac40f9faa9b1d8b923ff6b1e412f9ce4ff9acb20f298f18511a7
MD5 300ba5b481f351cdfacbf843c791dccd
BLAKE2b-256 2dc2eda1999d8f874836aed08b62e97f095eb04473e4253074706eff6b570cf2

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