pub fn encode_file(
in_path: impl AsRef<Path>,
out_path: impl AsRef<Path>,
dict_path: impl AsRef<Path>,
config: &EncodeConfig,
) -> Result<EncodeReport, PreprocessError>Expand description
Preprocesses in_path, writing the learned dictionary to dict_path and big-endian tokens to out_path.
ยงErrors
Returns PreprocessError on invalid parameters or I/O failures.