Skip to content

wisesight/th-simple-preprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.