Skip to main content

install_public_corpus

Function install_public_corpus 

Source
pub fn install_public_corpus(models_dir: &Path) -> Result<(), Error>
Expand description

Install the bundled public slice into models_dir’s public-corpus directory. Idempotent: a slice this binary wrote is left alone, and a manifest it did not write is replaced by the bundled one.

First use installs it. A bench run over the public tier calls this before reading, so the corpus a machine scores is the one this binary carries rather than something it has to find.