forked from KOBA789/node-mecab
-
Notifications
You must be signed in to change notification settings - Fork 1
mizchi/node-mecab
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
node-mecab
これはC++で組まれたnode.js用のMeCabバインディングです。
内部的にプロセスを立ちあげたりということはしていないのでそこそこ速いです(たぶん)。
インストール:
$ git clone git://github.com/mizchi/node-mecab.git
$ cd node-mecab
$ npm install . & npm link mecab
使い方:
// 簡易版
mecab = require("mecab");
console.log( mecab.parse("こちら葛飾区亀有公園前派出所"));
[ [ 'こちら',
'名詞',
'一般',
'*',
'*',
'*',
'*',
'こちら',
'*',
'*',
'*' ],
[ '葛飾区',
'名詞',
'一般',
'*',
'*',
'*',
'*',
'葛飾区',
'*',
'*',
'' ],
[ '亀有公園',
...
//MeCab のオブジェクトから
MeCab = require("mecab").MeCab;
var nomal = new MeCab.Tagger();
console.log( nomal.parse("すもももももももものうち"));
About
C++で書かれたnode.js用のMeCabバインディング
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C++ 81.7%
- JavaScript 18.3%