Package Exports
- wordcut
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wordcut) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
wordcut
Thai word breaker for Node.js
Installation
npm install wordcutUsage
var wordcut = require("wordcut");
wordcut.init();
console.log(wordcut.cut("กากา"));With additional custom dictionary
//see test/test_customdict.js
wordcut.init([customdict/*.txt],true);Command line interface
npm install -g wordcut
echo 'กากากา' | wordcutOptions
- --delim
- --dict
Web API
node server.jsTrying Web API
curl -X POST --data-binary '{"line":"กากา"}' http://localhost:8882/segmentDevelopment
- Explanation in Thai about version 0.0.3 http://veer66.wordpress.com/2014/02/19/wordcut2014/