1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//! # Lindera Ruby Bindings
//!
//! Ruby bindings for [Lindera](https://github.com/lindera/lindera), a morphological analysis library for CJK text.
//!
//! Lindera provides high-performance tokenization and morphological analysis for:
//! - Japanese (IPADIC, IPADIC NEologd, UniDic)
//! - Korean (ko-dic)
//! - Chinese (CC-CEDICT, Jieba)
//!
//! ## Features
//!
//! - **Dictionary management**: Build, load, and use custom dictionaries
//! - **Tokenization**: Multiple tokenization modes (normal, decompose)
//! - **Filters**: Character and token filtering pipeline
//! - **Training**: Train custom morphological models (with `train` feature)
//! - **User dictionaries**: Support for custom user dictionaries
//!
//! ## Examples
//!
//! ```ruby
//! require "lindera"
//!
//! # Create a tokenizer
//! builder = Lindera::TokenizerBuilder.new
//! tokenizer = builder.build
//!
//! # Tokenize text
//! tokens = tokenizer.tokenize("関西国際空港")
//! tokens.each { |token| puts "#{token.surface}: #{token.details}" }
//! ```
use ;
/// Returns the version of the lindera-ruby package.
///
/// # Returns
///
/// A string with the package version.
/// Ruby extension initialization entry point.
///
/// Defines the `Lindera` module and all its classes and functions.