Seq2Edits: Sequence Transduction Using Span-level Edit Operations

Felix Stahlberg, Shankar Kumar
9/23/2020
cs.CL

Official code: tensorflow/tensor2tensor (17,473 stars, Python, Apache-2.0, last commit 2023-06-02).

Abstract

We propose Seq2Edits, an open-vocabulary approach to sequence editing for natural language processing (NLP) tasks with a high degree of overlap between input and output texts. In this approach, each sequence-to-sequence transduction is represented as a sequence of edit operations, where each operation either replaces an entire source span with target tokens or keeps it unchanged.

Show full abstract

We evaluate our method on five NLP tasks (text normalization, sentence fusion, sentence splitting & rephrasing, text simplification, and grammatical error correction) and report competitive results across the board. For grammatical error correction, our method speeds up inference by up to 5.2x compared to full sequence models because inference time depends on the number of edits rather than the number of target tokens. For text normalization, sentence fusion, and grammatical error correction, our approach improves explainability by associating each edit operation with a human-readable tag.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Library of deep learning models and datasets designed to make deep learning more accessible and accelerate ML research.

17,4733,832Python, Jupyter NotebookJun 15, 20173 years agoApache-2.0
deep-learningmachine-learningmachine-translationreinforcement-learningtpu

Similar Papers

Cite this paper

@article{stahlberg2020seqedits,
  title  = {Seq2Edits: Sequence Transduction Using Span-level Edit Operations},
  author = {Felix Stahlberg and Shankar Kumar},
  year   = {2020},
  eprint = {2009.11136},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.11136}
}

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

Discussion