Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

text_clean-0.1.5-py3-none-any.whl (146.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page