Skip to content

Node wrapper around jumanpp, Japanese text tokenizer

Notifications You must be signed in to change notification settings

Ayashiihito/jumanpp_node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Juman++ node wrapper

This package aims to be a minimal wrapper around juman++ with no formatting provided.

API

new Jumanpp(command)

Where command is an optional argument containing the path to juman++ binary, default is 'jumanpp'

Jumanpp.query(sentence)

Expects a string, throws an error on empty argument. Returns a promise.

Jumanpp.close()

Signifies an end of input and terminates the juman++ process

Usage example

  const jumanpp = new Jumanpp();

  const one = await jumanpp.query('玄関で愛を待ち惚け');

  jumanpp.close();

About

Node wrapper around jumanpp, Japanese text tokenizer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published