Probabilistic Models And Approximate Inference Methods For Structured Data