This is the cl-mecab Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:08:49 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-mecab
Interface of MeCab that is a morpheme analyzer
carrotflakes
LLGPL
# 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.
0.1
cffi
(system).
split-sequence
(system).
src
(module).
Modules are listed depth-first from the system components tree.
Files are sorted by type and then listed depth-first from the systems components trees.
cl-mecab/src/cl-mecab.lisp
src
(module).
load-tagger
(function).
make-mecab
(function).
parse
(function).
parse*
(function).
with-mecab
(macro).
with-mecab*
(macro).
%mecab_destroy%
(function).
%mecab_new2%
(function).
%mecab_sparse_tostr%
(function).
*mecab*
(special variable).
Packages are listed by definition order.
cl-mecab
common-lisp
.
load-tagger
(function).
make-mecab
(function).
parse
(function).
parse*
(function).
with-mecab
(macro).
with-mecab*
(macro).
%mecab_destroy%
(function).
%mecab_new2%
(function).
%mecab_sparse_tostr%
(function).
*mecab*
(special variable).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Jump to: | %
F L M P W |
---|
Jump to: | %
F L M P W |
---|
Jump to: | *
S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
* | |||
*mecab* : | Private special variables | ||
| |||
S | |||
Special Variable, *mecab* : | Private special variables | ||
|
Jump to: | *
S |
---|
Jump to: | C F M P S |
---|
Jump to: | C F M P S |
---|