Discriminative Random Fields: A Discriminative Framework for Contextual Interaction in Classification