wordcut-ts
v0.0.3
Published
Thai word breaker for Node.js
Downloads
57
Maintainers
Readme
Wordcut ported to TypeScript
Thai word breaker library for Node.js
Under development ...
Installation
yarn add wordcut-ts
Usage
import { Wordcut } from "wordcut-ts";
var wordcut = new Wordcut();
wordcut.initNoDict();
console.log(wordcut.cut("กากา"));
With additional custom dictionary
wordcut.init("customdict/*.txt" ,true);
Web API
node server.js
curl -X POST --data-binary '{"line":"กากา"}' http://localhost:8882/segment
Development
- Explanation in Thai about version 0.0.3 http://veer66.wordpress.com/2014/02/19/wordcut2014