Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 879 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 879 Bytes

go-thaiwordcut - Thai word segmentation in Golang

Codacy Badge

A simple Thai word segmentation written in Golang, based on Maximum Matching algorithm by S. Manabu . Uses Lexitron (by NECTEC) dictionary as default

Installation

go get github.com/narongdejsrn/go-thaiwordcut

Usage

import "github.com/narongdejsrn/go-thaiwordcut"

segmenter := gothaiwordcut.Wordcut()
segmenter.LoadDefaultDict()
result := segmenter.Segment("ทดสอบการตัดคำภาษาไทย")