Added parameter to smoothNgrams to allow cutting of ngrams below a top-n probability.