Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
kuroshiro-analyzer-mecab
Advanced tools
Readme
Package | kuroshiro-analyzer-mecab | |
Description | mecab morphological analyzer for kuroshiro. | |
Compatibility | Node | ✓ (>=6) |
Browser | ✗ |
You should have mecab
and corresponding dictionary installed in your environment. And make sure that your have added mecab
command to your $PATH
environment variable. This analyzer will invoke mecab
from command line when parsing.
For install instructions of mecab
, you could check the official website of mecab from here.
$ npm install kuroshiro-analyzer-mecab
This analyzer utilizes mecab morphological analyzer.
The mecab-ipadic-neologd dictionary is recommanded which includes many neologisms (new word) and periodically updated.
import MecabAnalyzer from "kuroshiro-analyzer-mecab";
const analyzer = new MecabAnalyzer();
await kuroshiro.init(analyzer);
Example:
const analyzer = new MecabAnalyzer({
dictPath: "/usr/lib/mecab/dic/mecab-ipadic-neologd/",
execOptions: {
maxBuffer: 200 * 1024,
timeout: 0
}
});
command
: Optional mecab command (may have arguments). If set, the param dictPath
is ignoreddictPath
: Optional Path of the dictionary mecab usedexecOptions
: Optional The exec options to run mecab command. Example as below:{
// Largest amount of data in bytes allowed on stdout or stderr. see https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback.
maxBuffer: 200 * 1024,
// Timeout. see https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback.
timeout: 0
}
FAQs
mecab morphological analyzer for kuroshiro
The npm package kuroshiro-analyzer-mecab receives a total of 14 weekly downloads. As such, kuroshiro-analyzer-mecab popularity was classified as not popular.
We found that kuroshiro-analyzer-mecab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.