Thai word breaker for Node.js
npm install wordcut
var wordcut = require("wordcut");
wordcut.init();
console.log(wordcut.cut("กากา"));
With additional custom dictionary
//see test/test_customdict.js
wordcut.init([customdict/*.txt],true);
npm install -g wordcut
echo 'กากากา' | wordcut
- --delim
- --dict
node server.js
curl -X POST --data-binary '{"line":"กากา"}' http://localhost:8882/segment
- Explanation in Thai about version 0.0.3 http://veer66.wordpress.com/2014/02/19/wordcut2014/