-
chore: add serialization accessors to BigramFilter (#330)
发布于
2026-04-03 23:41:44 +00:00 - feat: add serialization accessors to BigramFilter
Add read-only accessors and a from_raw_parts constructor to
BigramFilter, enabling external tools to serialize/deserialize
the bigram index to/from disk without reaching into private fields.New public methods:
- lookup(), dense_data(), words(), dense_count(), populated()
- skip_index() -> Option<&BigramFilter>
- from_raw_parts(lookup, dense_data, ...) -> Self
-
Remove section header, rename from_raw_parts to reconstruct
-
fix lint and rename
-
fix ci
Co-authored-by: Dmitriy Kovalenko dmtr.kovalenko@outlook.com
下载附件