Chamkho

Thai word segmentation library in Rust

Usage

As library

```rust extern crate chamkho;

use chamkho::wordcut::Wordcut; use chamkho::dict::Dict;

fn main() { let dict = Dict::load(Dict::defaultpath()); let wordcut = Wordcut::new(dict.unwrap()); let segmentedstring = wordcut.putdelimiters(&"กากกา".tostring(), "|"); println!("{}", segmented_string); } ```

As command line

echo "กากกา" | wordcut