[](https://crates.io/crates/ik-rs)
[](./LICENSE)
[](https://github.com/blueshen/ik-rs/releases)
[](https://app.travis-ci.com/github/blueshen/ik-rs)
[](https://github.com/blueshen/ik-rs/network/members)
[](https://github.com/blueshen/ik-rs/stargazers)
# ik-rs
[ik-analyzer](https://github.com/blueshen/ik-analyzer) for Rust
# Usage
## Chinese Segment
```rust
let mut ik = IKSegmenter::new();
let text = "中华人民共和国";
let tokens = ik.tokenize(text, TokenMode::INDEX); // TokenMode::SEARCH
for token in tokens {
println!("{:?}", token);
}
```
# Usage for Tantivy
use [tantivy-ik](https://github.com/blueshen/tantivy-ik) project
---
Welcome rust developer and search engine developer join us, and maintain this project together!
you can PR or submit issue...
and star⭐️ or fork this project to support me!