esaxx-rs

Small wrapper around sentencepiece's esaxx suffix array C++ library. Usage

```rust let string = "abracadabra".tostring(); let chars: Vec<_> = string.chars().collect(); let n = chars.len(); let mut sa = vec![0; n]; let mut l = vec![0; n]; let mut r = vec![0; n]; let mut d = vec![0; n]; let mut nodenum = 0;

let alphabetsize = 0x110000; // All UCS4 range. unsafe { esaxxint32( chars.asptr() as *mut u32, sa.asmutptr(), l.asmutptr(), r.asmutptr(), d.asmutptr(), n.tryinto().unwrap(), alphabetsize, &mut nodenum, ); } ```

Current version: 0.1.0

License: Apache