Skip to main content

Simple Thai Preprocess Functions

Project description

th-preprocessor

Simple Thai Preprocess Functions

Objectives

This repository provides simple preprocess techniques for Thai sentences/phrases

Supports

The module supports Python 3.6+

Installation

pip install th-simple-preprocessor

How to Use

from th_preprocessor.preprocess import preprocess

text = '"::::: อย่างไรก็ตามนูร์ ฮิชัม อับดุลเลาะห์ 21-09-2018 https://www.malaysiakini.com/news/444015"'
words = preprocess(text)

print(words) 
# อย่างไรก็ตามนูร์ ฮิชัม อับดุลเลาะห์ WSNUMBER WSNUMBER WSNUMBER WSLINK

Package reference:

Copyright

All licenses in this repository are copyrighted by their respective authors. Everything else is released under CC0. See LICENSE for details.

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

th-simple-preprocessor-0.10.1.tar.gz (21.4 kB view hashes)

Uploaded Source

Built Distribution

th_simple_preprocessor-0.10.1-py3-none-any.whl (20.6 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