Towards Robust Text Classification: Mitigating Spurious Correlations with Causal Learning