刺树者
用于与 Helmut Schmid 的 TreeTagger 工具包交互的 Node.js 模块。
入门
安装模块: npm install treetagger
var Treetagger = require ( 'treetagger' ) ;
var tagger = new Treetagger ( ) ;
tagger . tag ( "This is a test!" , function ( err , results ) {
console . log ( results ) ;
} ) ;
/*
[ { t: 'This', pos: 'DT', l: 'this' },
{ t: 'is', pos: 'VBZ', l: 'be' },
{ t: 'a', pos: 'DT', l: 'a' },
{ t: 'test', pos: '
1