Updates to the ngram extraction script.