posibly

    0.0.3 • Public • Published

    Posibly

    Compare and Convert Part-of-Speech Tagged Sentences to Expected Grammar.

    npm version Build Status

    Install

    npm install --save posibly
    

    Initialize

    const Posibly = require('posibly');
    const posibly = new Posibly(['V', 'DT', 'N']);

    Compare

    // using posibly from above
    const tagged = [ [ 'eat', 'V' ], [ 'food', 'N' ] ];
    const editPath = posibly.editPath(tagged);
    // editPath.distance = 1

    Convert

    // using editPath from above
    const retagged = editPath.retag();
    /*
      retagged = [
        [ 'eat', 'V' ],
        [ null, 'DT' ],
        [ 'food', 'N' ],
      ]
    */

    Copyright 2017, Kyle Stafford (MIT License).

    Install

    npm i posibly

    DownloadsWeekly Downloads

    4

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    18.1 kB

    Total Files

    14

    Last publish

    Collaborators

    • kstafford3