Docs.rs
libchai-0.2.1
libchai 0.2.1
Docs.rs crate page
GPL-3.0
Links
Homepage
Documentation
Repository
crates.io
Source
Owners
tansongchen
Dependencies
chrono ^0.4.31
normal
clap ^4.0
normal
console_error_panic_hook ^0.1.7
normal
optional
csv ^1.3.0
normal
getrandom ^0.2
normal
itertools ^0.14.0
normal
js-sys ^0.3.66
normal
rand ^0.8.5
normal
regex ^1.10.2
normal
rustc-hash ^2.0.0
normal
serde ^1.0.193
normal
serde-wasm-bindgen ^0.6.3
normal
serde_with ^3.4.0
normal
serde_yaml ^0.9.27
normal
tsify ^0.4.5
normal
wasm-bindgen ^0.2.84
normal
web-sys ^0.3
normal
web-time ^1.1.0
normal
criterion ^0.5
dev
Versions
12.11%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
chai
0.2.1
Module data
Module Items
Structs
Constants
Type Aliases
In crate chai
chai
Module
data
Copy item path
Source
Expand description
数据结构的定义
Structs
§
原始可编码对象
从配置文件中读取的原始可编码对象
可编码对象
包含词、词长、元素序列、频率等信息
数据
将用户提供的输入转换为内部数据结构,并提供了一些实用的方法
码表项
用于输出为文本码表,包含了名称、全码、简码、全码排名和简码排名
编码信息
包含长度、频率、全码和简码,用于传给目标函数来统计
部分编码信息
全码或简码的编码信息
键位分布损失函数
键位分布的理想值和惩罚值
Constants
§
最大按键组合长度
只对低于最大按键组合长度的编码预先计算当量
最大词长
只考虑长度为 1 到 10 的词
Type Aliases
§
元素
元素用一个无符号整数表示
元素序列
可编码对象的序列
元素映射
元素映射用一个数组表示,下标是元素
原始当量信息
原始键位分布信息
当量信息
用指标记
用指标记
编码
编码用无符号整数表示
自动上屏
自动上屏判断数组
键
按键用无符号整数表示
键位分布信息