Normalizing English and Chinese Text
Project description
BuoyanText
v0.0.5 20230720
TextNorm.py
TextNorm class
Normalizing English or Chinese text
Arguments:
text="", language="English",
# Uniform
html_stripping=True, remove_repeated=False, remove_digits=True, stopwords_removal=True,
special_char_removal=True,
# English
contraction_expansion=True, accented_char_removal=True, text_lower_case=True, text_stemming=False,
text_lemmatization=True,
# Chinese
split_words=True, punctuation_drop=True
- text: the text need to be normalized
- language: "English" or "Chinese" (default: "English")
(1) Uniform approach arguments
- html_stripping: strip html tags if True (default: True)
- remove_repeated: remove repeated words (default: False)
- remove_digits: remove numbers (default: True)
- stopwords_removal: remove stopwords (default: True)
- special_char_removal: remove special characters (default: True)
(2) English text arguments
- contraction_expansion: expand contractions, for example "can't" to "can not" (default: True)
- accented_char_removal: (default: True)
- text_lower_case: (default: True)
- text_stemming: (default: False)
- text_lemmatization: (default: True)
(3) Chinese text arguments
- split_words: split words with jieba (default: True)
- punctuation_drop: drop punctuations (default: True)
TextReader.py
(1) file_reader
(2) file_list_reader
(3) pdf_to_txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
BuoyanText-0.0.5.tar.gz
(13.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file BuoyanText-0.0.5.tar.gz.
File metadata
- Download URL: BuoyanText-0.0.5.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03a4c95b7099a7f4a8899fd9dc2a6d449aea2230d949deb1c2ff2e1f0d8707ec
|
|
| MD5 |
576ee31c0ff1664d4620dbd57564a353
|
|
| BLAKE2b-256 |
6bf3df1542cf858913e74314b508ae4272984e8c98456e521d5d57fa52fa871d
|
File details
Details for the file BuoyanText-0.0.5-py3-none-any.whl.
File metadata
- Download URL: BuoyanText-0.0.5-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bff62152d862a8ef673605525b7b2197c301af3ec521d4ac49ab71745ab4d710
|
|
| MD5 |
5e7c28b5ccd5f449d12a730b4e9b4c0c
|
|
| BLAKE2b-256 |
50b1f5ac63c7dfef55061eb04c306d6de8b271ec62243363c3f192be5e760f8a
|