NLP, Machine Learning, Causality, Editors Pick, Hands On Tutorials.
described earlier shows how to adjust for the confounding parts of text. Pryzant et al. (2021) use a DistilBERT model to produce a representation of the text with embeddings and then select the vector corresponding to a prepended classification token, [CLS]. Pryzant et al. use Huggingface