Skip to content

wannaphong/thai-word-segmentation-sentencepiece

Repository files navigation

thai-word-segmentation-sentencepiece

thai word segmentation using sentencepiece

Install

then install pythaipiece

pip3 install https://github.com/wannaphongcom/thai-word-segmentation-sentencepiece/archive/master.zip

Using

>>> import pythaipiece
>>> pythaipiece.segment("ทดสอบการตัดคำภาษาไทยครับ แล้วคุณทำอะไร")
['ทดสอบ', 'การ', 'ตัด', 'คํา', 'ภาษาไทย', 'ครับ', '', 'แล้ว', 'คุณ', 'ทํา', 'อะไร']

About

thai word segmentation using sentencepiece

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages