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.1.0.tar.gz
(69.8 kB
view hashes)
Built Distribution
text_clean-0.1.0-py3-none-any.whl
(71.0 kB
view hashes)
Close
Hashes for text_clean-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33af4caf51b720f83f5afa15c363c833e72d5fc837cf714a93dc4474ac2c17f3 |
|
MD5 | 151f445d8acc3199f8879dbea2a575fa |
|
BLAKE2b-256 | 5c62b6d8b5e023ab125ff29b217a5b4c03b70bde77f121a83fff83c3236106df |