Generate_lm.py error when reproducing external scorer

This looks like an environment issue. As you didn’t give any information on version or setup, this is likely the cause. Reinstall everything according to the docs and report more if you need help.