#japanese #ngrams #tokenizer #nlp

tiniestsegmenter

Compact Japanese segmenter

1 unstable release

0.1.1 May 11, 2024
0.1.0 May 11, 2024

#940 in Text processing

Download history 209/week @ 2024-05-10 8/week @ 2024-05-17

217 downloads per month

Custom license

58KB
2K SLoC

TiniestSegmenter

A port of TinySegmenter written in pure, safe rust with no dependencies. You can find bindings for both Rust and Python.

TinySegmenter is an n-gram word tokenizer for Japanese text originally built by Taku Kudo (2008).

Usage

Add the crate to your project: cargo add tiniestsegmenter.

use tiniestsegmenter as ts;

fn main() {
    let tokens: Result<Vec<String>, ts::TokenizeError> = ts::tokenize("ジャガイモが好きです。");
}

No runtime deps