for i in tokens: for j in tokens: score[i][j] = dot(Q[i], K[j])