guile-mecab

Guile bindings for MeCab

git clone https://git.lepiller.eu/git/guile-mecab

Initial commit

Julien LepillerTue Aug 03 03:53:17+0200 2021

a0cc754

guile-mecab
namelast commitdate
.gitignoreInitial commitTue Aug 03 03:53:17+0200 2021
Makefile.amInitial commitTue Aug 03 03:53:17+0200 2021
README.mdInitial commitTue Aug 03 03:53:17+0200 2021
configure.acInitial commitTue Aug 03 03:53:17+0200 2021
guile.amInitial commitTue Aug 03 03:53:17+0200 2021
guix/Initial commitTue Aug 03 03:53:17+0200 2021
m4/Initial commitTue Aug 03 03:53:17+0200 2021
mecab/Initial commitTue Aug 03 03:53:17+0200 2021
pre-inst-env.inInitial commitTue Aug 03 03:53:17+0200 2021

README.md

Guile Mecab

Guile bindings for MeCab, yet another part-of-speech and morphological analyzer. The bindings link to libmecab and offer a small API for using MeCab.

Installation

Using Guix, it is easy to use and install mecab, as we provide a recipe for mecab, mecab-ipadic (one possible dictionary for Japanese) and guile-mecab in the guix directory. For instance, to enter an environment with all the tools needed to run guile-mecab, you can run, from this repository:

guix environment -L guix --ad-hoc guile guile-mecab mecab-ipadic

Usage

Once installed, you can use the bindings by loading (mecab mecab) in a guile program.

The tagger

The tagger is a global object used to load a dictionary. You can create and remove a tagger by using the following procedures:

The analysis

To analyse a sentence, you can use one of the following procedures.

Nodes

Nodes can be manipulated with the following procedures.