thai-wordcut
Thai word breaker for Node.js
Last updated 4 years ago by iaunn .
LGPL · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install thai-wordcut 
SYNC missed versions from official npm registry.

wordcut

Thai word breaker for Node.js

Installation

npm install thai-wordcut

Usage

var wordcut = require("thai-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
worcut < input_file > output_file

Options

  • --delim
  • --dict

Web API

node server.js

Trying Web API

curl -X POST --data-binary '{"line":"กากา"}' http://localhost:8882/segment

Development

Current Tags

  • 0.7.7                                ...           latest (4 years ago)

3 Versions

  • 0.7.7                                ...           4 years ago
  • 0.7.6                                ...           4 years ago
  • 0.7.5                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 3
Dependencies (5)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |