Learning to Predict from Text