language models, replacing getFinalKey by getFinalScore