Welcome to Language Model Playground’s documentation!#

Language model playground is a tutorial about “How to implement neural network based language models”. We use Pytorch to implement language models.

We have implemented several language models including:

You can easily create these models instance using module lmp.model. You can also train these models directly using CLI script lmp.script.train_model.

import lmp.model

model = lmp.model.ElmanNet(...)  # parameters go in here.
model = lmp.model.LSTM1997(...)  # parameters go in here.
model = lmp.model.TransEnc(...)  # parameters go in here.

See also

lmp.model

All available language models.

We have written serveral scripts to demonstrate typical training pipline of language models and demonstrate furthur usage on language models:

See quick start for typical language model training pipline, or jump directly to contents you are interesting in!

Indices and tables#