Now Particularly Misnamed

    thai-wordcut

    0.7.7 • Public • Published

    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

    Install

    npm i thai-wordcut

    DownloadsWeekly Downloads

    9

    Version

    0.7.7

    License

    none

    Last publish

    Collaborators

    • iaunn