Process text for NLP
Project description
#text-clean Process text for NLP.
how to use
from text_clean import TextClean
tc = TextClean()
_str = "繁 體 字是smasd ❶ ❷ ❸ ❹ 艹艹艹艹 艹艹艹艹nm 夶彩呗我 幹什麼 □ ■ ◇ ◆ − ++++++++ ⑪ ⑫ ⑬ ⒍ ⒎ ⒏ ⒐ W,X asd鬼东 西錯 鍼٩(๑ᵒ̴̶͈᷄ᗨᵒ̴̶͈᷅)و q🕓🕛"
print(tc.clean(_str))
# output
# 繁体字是smasd1234艹艹艹nm大大彩呗我干什么+++1112136789wxasd鬼东西错针q
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
text-clean-0.0.5.tar.gz
(66.4 kB
view hashes)
Built Distribution
text_clean-0.0.5-py3-none-any.whl
(67.8 kB
view hashes)
Close
Hashes for text_clean-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75372f25bb6d8d6bfa7bb83687fea8a6b4daf001f48eb001b344b826084ebef4 |
|
MD5 | 1c90ca043959c94403e3cc40e26e59bb |
|
BLAKE2b-256 | d43fd4ad8b18b5521252ca0303cd7735a36338ab5262127227eda6ca20029a13 |