added rank to unigram model output