The file is never loaded – you’re just passing the string `'quadgrams.txt'`. I tweaked the script so that it loads the file and then calls `readlines()`. Am I missing something?