Text this: Generalized Principal Component Analysis