#segmentation #blazingly

bin+lib khmercut

A blazingly fast Khmer word segmentation tool written in Rust

1 unstable release

0.1.5 Oct 19, 2023

#23 in #segmentation

MIT license

6MB
204 lines

khmercut.rs

A Blazingly Fast Khmer Word Segmentation Tool written in Rust.

let input_str = "ឃាត់ខ្លួនជនសង្ស័យ០៤នាក់ Hello, world ករណីលួចខ្សែភ្លើង នៅស្រុកព្រៃនប់។".to_string();

for token in khmercut::tokenize(&input_str) {
    print!("{}|", token);
}

// => ឃាត់ខ្លួន|ជនសង្ស័យ|០៤|នាក់| |Hello,| |world| |ករណី|លួច|ខ្សែភ្លើង| |នៅ|ស្រុក|ព្រៃនប់|។|

Run

cargo run

Dependencies

~4–6MB
~105K SLoC