CausalNLP: A Practical Toolkit for Causal Inference with Text
Not on the map. Why?
Abstract (arXiv)
Causal inference is the process of estimating the effect or impact of a treatment on an outcome with other covariates as potential confounders (and mediators) that may need to be controlled. The vast majority of existing methods and systems for causal inference assume that all variables under consideration are categorical or numerical (e.g., gender, price, enrollment). In this paper, we present CausalNLP, a toolkit for inferring causality with observational data that includes text in addition to traditional numerical and categorical variables. CausalNLP employs the use of meta learners for treatment effect estimation and supports using raw text and its linguistic properties as a treatment, an outcome, or a "controlled-for" variable (e.g., confounder). The library is open source and available at: https://github.com/amaiya/causalnlp.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 15 of its 29 references that are in the map. First posted on arXiv 15 Jun 2021.
Builds on
15 of 29 references.
References · 15
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2016Wide & Deep Learning for Recommender Systemscited by 745
- 2017Meta-learners for Estimating Heterogeneous Treatment Effects using Machine Learningcited by 475
- 2017Quasi-Oracle Estimation of Heterogeneous Treatment Effectscited by 328
- 2019Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approachcited by 299
- 2020CausalML: Python Package for Causal Machine Learningcited by 74
- 2019Machine Learning Methods Economists Should Know Aboutcited by 63
- 2018How to Make Causal Inferences Using Textscited by 59
- 2020Text and Causal Inference: A Review of Using Text to Remove Confounding from Causal Estimatescited by 59
- 2020Causal Effects of Linguistic Propertiescited by 39
- 2018Challenges of Using Text Classifiers for Causal Inferencecited by 33
- 2020ktrain: A Low-Code Library for Augmented Machine Learningcited by 23
Built on by
Citing papers per year: 2023: 1; 2024: 2; 2025: 1; 2026: 1.
5 papers.
- 2024A Survey of Event Causality Identification: Taxonomy, Challenges, Assessment, and Prospectscited by 6
- 2023Benchmarking Bayesian Causal Discovery Methods for Downstream Treatment Effect Estimationcited by 3
- 2025LLM-Driven Treatment Effect Estimation Under Inference Time Text Confoundingcited by 2
- 2024Eliciting Causal Abilities in Large Language Models for Reasoning Taskscited by 0
- 2026Integrating Unstructured Text into Causal Inference: Empirical Evidence from Real Datacited by 0
- 2026Integrating Unstructured Text into Causal Inference: Empirical Evidence from Real Data15 Feb 2026
- 2025LLM-Driven Treatment Effect Estimation Under Inference Time Text Confounding3 Jul 2025
- 2024Eliciting Causal Abilities in Large Language Models for Reasoning Tasks19 Dec 2024
- 2024A Survey of Event Causality Identification: Taxonomy, Challenges, Assessment, and Prospects15 Nov 2024
- 2023Benchmarking Bayesian Causal Discovery Methods for Downstream Treatment Effect Estimation11 Jul 2023