Function to create smaller frequency table
Function to create ngrams from vector of filenames