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.4.tar.gz
(146.3 kB
view hashes)
Built Distribution
text_clean-0.1.4-py3-none-any.whl
(145.3 kB
view hashes)
Close
Hashes for text_clean-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc523027db224a4c1fed70e4a4325ee88b3cdb0735180d2dcd6545ebcd44da05 |
|
MD5 | aa0ba4431703c7e0d06ca9ebb758a6e1 |
|
BLAKE2b-256 | 27cde8b2961c40484d5365f1c3f3482bd835e46566a3719122d81a28b3a9ba70 |