Advances in Spectral Learning with Applications to Text Analysis and Brain Imaging