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
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.