As a standard Python library (e.g., by adding import allennlp_lm to your Python code).
As a collection of supplementary models, modules, etc. that can be used in your AllenNLP model configs. To make these accessible all you need to do is add the --include-package allennlp_lm flag when running allennlp commands.
Issues & Contributions
This code is in the early stages of development and is likely to be unstable in the upcoming months. Everyone is welcome to file issues with either feature requests, bug reports, or general questions so long as they are related to language modeling or this codebase. Everyone is especially welcome to submit pull requests/responses addressing said issues.