Skip to main content

A lib for Chinese text preprocessing

Project description


Chinese text preprocess

You can extract numbers, email, website, emoji, tex, and delete spaces, punctuations.


>> pip install cnprep


from cnprep import Extractor
ext = Extractor(delete=True, args=['email', 'number'], blur=True, limit=5)

delete: delete the found info (except blur)
args: option
e.g. ['email', 'number'] or 'email, number'
blur: convert Chinese to pinyin and extract useful numbers
limit: parameter for get_number

Also, you can use ''ext.reset_param()'' to reset the parameters.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cnprep-0.0.5.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page