Skip to content

Commit 6f0efef

Browse files
Do not include heavy Japanese tokenizer by default
1 parent b0a02ba commit 6f0efef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tikv-jemallocator = { version = "0.4", optional = true }
5050
winapi = { version = "0.3", features = ["minwindef", "consoleapi"] }
5151

5252
[features]
53-
default = ["allocator-jemalloc", "tokenizer-chinese", "tokenizer-japanese"]
53+
default = ["allocator-jemalloc", "tokenizer-chinese"]
5454
allocator-jemalloc = ["tikv-jemallocator"]
5555
tokenizer-chinese = ["jieba-rs"]
5656
tokenizer-japanese = ["lindera-core", "lindera-dictionary", "lindera-tokenizer"]

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ You can find the built binaries in the `./target/release` directory.
7575

7676
_Install `build-essential`, `clang`, `libclang-dev`, `libc6-dev`, `g++` and `llvm-dev` to be able to compile the required RocksDB dependency._
7777

78+
Note that the following optional features can be enabled upon building Sonic: `allocator-jemalloc`, `tokenizer-chinese` and `tokenizer-japanese` (some might be already enabled by default).
79+
7880
**👉 Install from Cargo:**
7981

8082
You can install Sonic directly with `cargo install`:

0 commit comments

Comments
 (0)