Exploiting Non-Redundant Local Patterns And Probabilistic Models For Analyzing Structured And Semi-Structured Data