Adaptive probabilistic models for learning semantic patterns