All Projects → jiegec → Tantivy Jieba

jiegec / Tantivy Jieba

Licence: mit
An adapter that bridges between tantivy and jieba-rs.

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Tantivy Jieba

salak.rs
A multi layered configuration loader and zero-boilerplate configuration parser.
Stars: ✭ 27 (+58.82%)
Mutual labels:  crates
ffizer
ffizer is a files and folders initializer / generator. Create any kind (or part) of project from template.
Stars: ✭ 57 (+235.29%)
Mutual labels:  crates
Rust Search Extension
🦀 The ultimate search extension for Rust
Stars: ✭ 540 (+3076.47%)
Mutual labels:  crates
cargo-esr
Extended Search & Ranking tool for crates.
Stars: ✭ 23 (+35.29%)
Mutual labels:  crates
rtriangulate
A Rust implementation of the Bourke Delaunay triangulation algorithm.
Stars: ✭ 20 (+17.65%)
Mutual labels:  crates
sorceress
A Rust environment for sound synthesis and algorithmic composition.
Stars: ✭ 64 (+276.47%)
Mutual labels:  crates
minreq
Simple, minimal-dependency HTTP client.
Stars: ✭ 91 (+435.29%)
Mutual labels:  crates
Colored
(Rust) Coloring terminal so simple you already know how to do it !
Stars: ✭ 715 (+4105.88%)
Mutual labels:  crates
MysteryCrate
PLUGIN ARCHIVED. USE https://github.com/DaPigGuy/PiggyCrates instead!
Stars: ✭ 30 (+76.47%)
Mutual labels:  crates
Cargo Deny
❌ Cargo plugin for linting your dependencies 🦀
Stars: ✭ 533 (+3035.29%)
Mutual labels:  crates
crate-trends
🦀Visualize Rust Package: Crates comparison website
Stars: ✭ 14 (-17.65%)
Mutual labels:  crates
rs-poker
No description or website provided.
Stars: ✭ 32 (+88.24%)
Mutual labels:  crates
Rspotify
Spotify Web API SDK implemented in Rust
Stars: ✭ 255 (+1400%)
Mutual labels:  crates
cargo-trim
Binary application to clean up .cargo/registry & .cargo/git cache
Stars: ✭ 15 (-11.76%)
Mutual labels:  crates
Prettytable Rs
A rust library to print aligned and formatted tables
Stars: ✭ 552 (+3147.06%)
Mutual labels:  crates
MysteryBox
Crate implemention for PocketMine-MP (PMMP)
Stars: ✭ 19 (+11.76%)
Mutual labels:  crates
crates
🌎 A tool to generate your locale files compatible with i18n.
Stars: ✭ 52 (+205.88%)
Mutual labels:  crates
Ritual
Use C++ libraries from Rust
Stars: ✭ 792 (+4558.82%)
Mutual labels:  crates
Bracket Lib
The Roguelike Toolkit (RLTK), implemented for Rust.
Stars: ✭ 631 (+3611.76%)
Mutual labels:  crates
Ggez
Rust library to create a Good Game Easily
Stars: ✭ 3,120 (+18252.94%)
Mutual labels:  crates

tantivy-jieba

Crates.io version docs.rs Changelog FOSSA Status

An adapter that bridges between tantivy and jieba-rs.

Usage

Add dependency tantivy-jieba to your Cargo.toml.

Example

use tantivy::tokenizer::*;
let tokenizer = tantivy_jieba::JiebaTokenizer {};
let mut token_stream = tokenizer.token_stream("测试");
assert_eq!(token_stream.next().unwrap().text, "测试");
assert!(token_stream.next().is_none());

Register tantivy tokenizer

use tantivy::schema::Schema;
use tantivy::tokenizer::*;
use tantivy::Index;
let tokenizer = tantivy_jieba::JiebaTokenizer {};
let index = Index::create_in_ram(schema);
index.tokenizers()
     .register("jieba", tokenizer);

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].