The values of the first N dimensions that correspond to unigrams and bigrams w i that occur in the review d are set to d i , their frequency in d. The subsequent k dimensions that correspond to the top ranked based entries for the review d are weighted according to their ranking score.
we set the value of the r-th ranked base entry v r d to 1/r.