Text this: Learning Grammatical Models for Object Recognition