Code for deriving CCA vectors for a given corpus