Skip to main content

Yoctol Natural Language Text Normalizer

Project description

# text-normalizer



Normalize your Text String.
It is a python package that help you normalize your text data and recover it.

## Install
Use Python3
> pip install text-normalizer
## Usage
from text_normalizer.text_normalizer_collection_library import chinese_charactor_text_normalizer_collection_2

input_sentence = " 我在85.33度C買了一杯900──1000元的咖啡 《ohoh》?? m_m"
nor_sentence, meta = chinese_charactor_text_normalizer_collection_2.normalize(input_sentence)
> "我在_float_度c買了一杯_int_-_int_元的咖啡 <ohoh>?? m_m"

de_sentence = chinese_charactor_text_normalizer_collection_2.denormalize(nor_sentence, meta)
> "我在85.33度C買了一杯900──1000元的咖啡 《ohoh》?? m_m",


Project details

Download files

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

Files for text-normalizer, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size text-normalizer-0.1.3.tar.gz (25.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page