The cl-mecab Reference Manual

This is the cl-mecab Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Feb 26 15:26:51 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 cl-mecab

Interface of MeCab that is a morpheme analyzer

Author

carrotflakes

License

LLGPL

Long Description

# cl-mecab

## Usage

“‘lisp
(ql:quickload :cl-mecab)

(cl-mecab:with-mecab ()
(cl-mecab:parse* "今日の天気は晴れです"))
;; =>
;; (("今日" "名詞" "副詞可能" "*" "*" "*" "*" "今日" "キョウ" "キョー")
;; ("の" "助詞" "連体化" "*" "*" "*" "*" "の" "ノ" "ノ")
;; ("天気" "名詞" "一般" "*" "*" "*" "*" "天気" "テンキ" "テンキ")
;; ("は" "助詞" "係助詞" "*" "*" "*" "*" "は" "ハ" "ワ")
;; ("晴れ" "名詞" "一般" "*" "*" "*" "*" "晴れ" "ハレ" "ハレ")
;; ("です" "助動詞" "*" "*" "*" "特殊・デス" "基本形" "です" "デス" "デス"))
“‘

## Installation

Assuming you already installed [MeCab](http://taku910.github.io/mecab/).

“‘ lisp
(ql:quickload :cl-mecab)
“‘

## APIs
### ‘(with-mecab (&optional (option "")) &body body)‘
This macro makes MeCab Tagger and enables function ‘parse‘ within the ‘body‘.
The MeCab Tagger will be made only once while that execution.
The ‘option‘ is taken MeCab Tagger initialization.

### ‘(with-mecab* (&optional (option "")) &body body)‘
This macro similar to ‘with-mecab‘. but, this creates MeCab Tagger each call.

### ‘(load-tagger &optional (option ""))‘
This function makes MeCab Tagger on global.
You can use function ‘parse‘ after calling the ‘load-tagger‘ only once.
This is useful for experimental implementations.

### ‘(parse text)‘
This function parses the text by MeCab Tagger and returns result as a string.

### ‘(parse* text)‘
This function parses the text by MeCab Tagger and returns result as list seems above example.

## Author

* carrotflakes (carrotflakes@gmail.com)

## Copyright

Copyright (c) 2016-2018 carrotflakes (carrotflakes@gmail.com)

## License

Licensed under the LLGPL License.

Version

0.1

Dependencies
  • cffi (system).
  • split-sequence (system).
Source

cl-mecab.asd.

Child Component

src (module).


3 Modules

Modules are listed depth-first from the system components tree.


3.1 cl-mecab/src

Source

cl-mecab.asd.

Parent Component

cl-mecab (system).

Child Component

cl-mecab.lisp (file).


4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


4.1 Lisp


4.1.1 cl-mecab/cl-mecab.asd

Source

cl-mecab.asd.

Parent Component

cl-mecab (system).

ASDF Systems

cl-mecab.

Packages

cl-mecab-asd.


4.1.2 cl-mecab/src/cl-mecab.lisp

Source

cl-mecab.asd.

Parent Component

src (module).

Packages

cl-mecab.

Public Interface
Internals

5 Packages

Packages are listed by definition order.


5.1 cl-mecab

Source

cl-mecab.lisp.

Use List

common-lisp.

Public Interface
Internals

5.2 cl-mecab-asd

Source

cl-mecab.asd.

Use List
  • asdf/interface.
  • common-lisp.

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


6.1 Public Interface


6.1.1 Macros

Macro: with-mecab ((&optional option) &body body)
Package

cl-mecab.

Source

cl-mecab.lisp.

Macro: with-mecab* ((&optional option) &body body)
Package

cl-mecab.

Source

cl-mecab.lisp.


6.1.2 Ordinary functions

Function: load-tagger (&optional option)
Package

cl-mecab.

Source

cl-mecab.lisp.

Function: make-mecab (&optional option)
Package

cl-mecab.

Source

cl-mecab.lisp.

Function: parse (text &optional *mecab*)
Package

cl-mecab.

Source

cl-mecab.lisp.

Function: parse* (text &optional *mecab*)
Package

cl-mecab.

Source

cl-mecab.lisp.


6.2 Internals


6.2.1 Special variables

Special Variable: *mecab*
Package

cl-mecab.

Source

cl-mecab.lisp.


6.2.2 Ordinary functions

Function: %mecab_destroy% (mecab)
Package

cl-mecab.

Source

cl-mecab.lisp.

Function: %mecab_new2% (arg)
Package

cl-mecab.

Source

cl-mecab.lisp.

Function: %mecab_sparse_tostr% (mecab str)
Package

cl-mecab.

Source

cl-mecab.lisp.


Appendix A Indexes


A.1 Concepts


A.3 Variables

Jump to:   *  
S  
Index Entry  Section

*
*mecab*: Private special variables

S
Special Variable, *mecab*: Private special variables