reduce ngrams for MemoryError