lindera-analysis
Text analysis chain for Lindera:
character filters, token filters, and the Tokenizer that composes them
around a lindera::segmenter::Segmenter.
The lindera crate provides pure
morphological segmentation; this crate layers Lucene-style analysis on top:
input text → character filters → Segmenter → token filters → tokens
Usage
[]
= "5.0"
= "5.0"
use load_dictionary;
use Mode;
use Segmenter;
use Tokenizer;
let dictionary = load_dictionary?;
let segmenter = new;
let tokenizer = new;
let tokens = tokenizer.tokenize?;
Provided filters include Unicode normalization, mapping, and regex character filters, and Japanese/Korean dictionary-driven token filters (base form, reading form, part-of-speech keep/stop tags, compound words, numbers, katakana stemming, and more) mirroring Lucene's kuromoji / nori analyzers.
License
MIT