Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mecab-ipadic seed dictionary reader

License

NotificationsYou must be signed in to change notification settings

takuyaa/mecab-ipadic-seed

Repository files navigation

Build Status

File reader formecab-ipadic seed dictionary.

Installation

$ npm install mecab-ipadic-seed

Usage

Construct object:

constIPADic=require('mecab-ipadic-seed');constdic=newIPADic();

This library offers 4 methods: readMatrixDef(), readCharDef(), readUnkDef(), and readTokenInfo() for reading MeCab seed dictionary (They are text files).For example, if you would like to readmetrix.def:

dic.readMatrixDef((line)=>{// line is a line of text of matrix.def// This function will be called at line-by-line sequentially}).then(()=>{// This function will be called at once when all lines have been read});

Usage of other 3 methods are in the same way.See also undertest directory.

License

This project is licensed under the MIT License. See LICENSE.txt for details.This repository includes files of 3rd party dictionaries. See NOTICE.md for these details.

About

mecab-ipadic seed dictionary reader

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp