A Generalized Earley Parser for Human Activity Parsing and Prediction