Add script to format frames into ngram data