Learning to Model Spatial Dependency: Semi-Supervised Discriminative Random Fields