Added token_vector code for computeKeysAndScores.