Runs the canonical test inputs through the reference fastText
implementation and writes per-input top-K predictions to
test/fixtures/golden_predictions.json.
Acts as a thin wrapper over priv/scripts/generate_golden_fixtures.py so
the workflow is consistent with mix text.download_lid176. The wrapper
simply ensures the prerequisites exist and shells out to Python; it does
not embed any model logic itself.
Prerequisites
Python 3.8 or newer.
The
fasttextPython package:pip install fasttext.The
lid.176.binmodel file present inpriv/lid_176/— runmix text.download_lid176first.
Usage
mix text.gen_golden_fixtures
mix text.gen_golden_fixtures --top-k 10Options
--top-k N— number of predictions to record per input (default 5).--python PATH— path to the Python interpreter (default:python3).
Any unrecognised options are forwarded to the underlying script unchanged.