OpenNMT-Py Application Language Modeling?

I notice that in OpenNMT (Lua version), there’s a web page suggesting that OpeNMT can be used to train language model. I’m wondering if I want to use OpenNMT-Py to train language model (not constructing encoder at all), is there a simple way to do that?