npm

Need private packages and team management tools?Check out npm Orgs. »

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

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability