0.0.6 • Published 7 years ago
hachikuji v0.0.6
Hachikuji
Required
- Docker
- yamitzky/miniconda-neologd - Docker Hub
Setup
curl -fsSL https://get.docker.com/ | sh
sudo usermod -aG docker `whoami`
sudo gpasswd -a $USER docker
docker pull yamitzky/docker-miniconda-neologd
Install
yarn add hachikuji
Usage
cosnt { Mecab } = require('hachikuji')
new Mecab()
.parse("ご注文はうさぎですか?")
.then( results => console.log(results) );
=>
[ { surface_from: 'ご注文はうさぎですか?',
pos: '名詞',
pos_detail_1: '固有名詞',
pos_detail_2: '一般',
pos_detail_3: '*',
conjugated_type: '*',
conjugated_form: '*',
basic_form: 'ご注文はうさぎですか?',
reading: 'ゴチュウモンハウサギデスカ',
pronunciation: 'ゴチューモンハウサギデスカ' } ]
Reference Code
hecomi/node-mecab-async: Asynchronous japanese morphological analyser using MeCab.