Skip to main content
The Jieba tokenizer is a tokenizer for Chinese text that leverages both a dictionary and statistical models. It is generally considered to be better at identifying ambiguous Chinese word boundaries compared to the Chinese Lindera and Chinese compatible tokenizers, but the tradeoff is that it is slower.
To get a feel for this tokenizer, run the following command and replace the text with your own:
Expected Response

Search Mode

The Jieba tokenizer enables search_mode by default, which splits compound words into smaller tokens in addition to keeping the original words:
Expected Response
To keep only the original words, set search_mode=false. This can be useful when tokenizing a search query to avoid matching documents that contain only part of a compound word:
Expected Response

Convert Between Traditional and Simplified Chinese

Use chinese_convert to convert Traditional and Simplified Chinese to the same form before tokenization, so queries can match documents written in either form.
The following conversion modes are supported: