Contextual Learning for Anomaly Detection in Tabular Data