Text this: Generalized PCA Method and Its Application in Uncertainty Reasoning