CausalNLP: A Practical Toolkit for Causal Inference with Text

Arun S. Maiya
6/15/2021
cs.CLcs.LG

Official code: amaiya/causalnlp (158 stars, Jupyter Notebook, Apache-2.0, last commit 2025-02-06).

Abstract

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).

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

amaiya/causalnlpOfficial100%
Apache-2.0

CausalNLP is a practical toolkit for causal inference with text as treatment, outcome, or "controlled-for" variable.

15811Jupyter Notebook, PythonMay 30, 20211 years agoApache-2.0
causal-inferencenlp

Similar Papers

Cite this paper

@article{maiya2021causalnlp,
  title  = {CausalNLP: A Practical Toolkit for Causal Inference with Text},
  author = {Arun S. Maiya},
  year   = {2021},
  eprint = {2106.08043},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.08043}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.08043.svg)](https://codeofpaper.com/paper/2106.08043)

Discussion