Available on crate feature
dict_builder only.Expand description
Code for creating a separate content dictionary.
Effective dictionaries are up to 1% the size of the complete training body, and are trained on many examples of the original data.
Implemented following the paper “Effective construction of Relative Lempel-Ziv Dictionaries”, by Kewen Liao, Matthias Petri, Alistair Moffat, and Anthony Wirth
Structs§
- Dictionary
Trainer Options - Options for producing a standard formatted Zstandard dictionary.
Enums§
- Dictionary
Training Error - Failures reported before or during formatted dictionary training.
Functions§
- create_
raw_ dict_ from_ dir - Creates a “raw content” dictionary, training off of every file in this directory and all sub-directories.
- create_
raw_ dict_ from_ source - Read from
sourceto create a “raw content” dictionary ofdict_size. The completed dictionary is written tooutput. - train_
dictionary - Trains a standard formatted dictionary from independent representative samples.