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.5.tar.gz
(147.7 kB
view details)
Built Distribution
text_clean-0.1.5-py3-none-any.whl
(146.7 kB
view details)
File details
Details for the file text-clean-0.1.5.tar.gz
.
File metadata
- Download URL: text-clean-0.1.5.tar.gz
- Upload date:
- Size: 147.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3091959c0b00dff2ed3253f51a8da4027bbe67a97abb142c8d9a279b0f1cc7e |
|
MD5 | 2688a1a0b6a754cc9414c364c82e1c60 |
|
BLAKE2b-256 | e9d23a30eff09fbd895081271ae7f55caabbf0ab3d26c296d8fba5f53c7883d4 |
File details
Details for the file text_clean-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: text_clean-0.1.5-py3-none-any.whl
- Upload date:
- Size: 146.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80cefdfd8f34d3d836aae9e07a83ba585555b8d424ff1ac6bb147d01e04d0875 |
|
MD5 | 29bdf9f2cfab532847516b997b26ffdd |
|
BLAKE2b-256 | 0928ad8d3bba41c3962daa9529808f67bef2758bc4d5e2f14a2565c5aaf80358 |