make get ngram multi thread