Doc2Dict: Information Extraction as Text Generation

Benjamin Townsend, Eamon Ito-Fisher, Lily Zhang, Madison May
5/16/2021
cs.CLcs.AIcs.LG

Official code: IndicoDataSolutions/Doc2Dict (8 stars, Python, last commit 2021-10-10).

Abstract

Typically, information extraction (IE) requires a pipeline approach: first, a sequence labeling model is trained on manually annotated documents to extract relevant spans; then, when a new document arrives, a model predicts spans which are then post-processed and standardized to convert the information into a database entry. We replace this labor-intensive workflow with a transformer language model trained on existing database records to directly generate structured JSON.

Show full abstract

Our solution removes the workload associated with producing token-level annotations and takes advantage of a data source which is generally quite plentiful (e.g. database records). As long documents are common in information extraction tasks, we use gradient checkpointing and chunked encoding to apply our method to sequences of up to 32,000 tokens on a single GPU. Our Doc2Dict approach is competitive with more complex, hand-engineered pipelines and offers a simple but effective baseline for document-level information extraction. We release our Doc2Dict model and code to reproduce our experiments and facilitate future work.

View on arXivView PDF

Code Implementations(1)

Code accompanying Doc2Dict paper

81PythonFeb 28, 20215 years ago

Similar Papers

Cite this paper

@article{townsend2021docdict,
  title  = {Doc2Dict: Information Extraction as Text Generation},
  author = {Benjamin Townsend and Eamon Ito-Fisher and Lily Zhang and Madison May},
  year   = {2021},
  eprint = {2105.07510},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.07510}
}

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/2105.07510.svg)](https://codeofpaper.com/paper/2105.07510)

Discussion