Necessary Pigeonholing Mechanism

    wordcut

    0.9.1 • Public • Published

    wordcut

    Thai word breaker for Node.js

    Installation

    npm install wordcut
    

    Usage

    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 'กากากา' | wordcut
    

    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 wordcut

    DownloadsWeekly Downloads

    1,129

    Version

    0.9.1

    License

    none

    Unpacked Size

    488 kB

    Total Files

    29

    Last publish

    Collaborators

    • kobkrit
    • veer66