LmLogits is a Python package for computing the logits of a language model, under Regex or Yacc constraints.
Use the package manager pip to install LmLogits.
pip install lmlogits
Examples are available in the notebooks folder.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.