now computing word ranks for labels