script to prune ngrams with low tfidf