A causal framework for explaining the predictions of black-box sequence-to-sequence models