external language model implementation with readout for lm, working
version