TextBox: A Unified, Modularized, and Extensible Framework for Text Generation

Junyi Li, Tianyi Tang, Gaole He, Jinhao Jiang, Xiaoxuan Hu +5 more
1/6/2021
cs.AI

Official code: RUCAIBox/TextBox (1,093 stars, Python, MIT, PyTorch, last commit 2023-07-27).

Abstract

In this paper, we release an open-source library, called TextBox, to provide a unified, modularized, and extensible text generation framework. TextBox aims to support a broad set of text generation tasks and models.

Show full abstract

In our library, we implement 21 text generation models on 9 benchmark datasets, covering the categories of VAE, GAN, and pretrained language models. Meanwhile, our library maintains sufficient modularity and extensibility by properly decomposing the model architecture, inference, and learning process into highly reusable modules, which allows users to easily incorporate new models into our framework. The above features make TextBox specially suitable for researchers and practitioners to quickly reproduce baseline models and develop new models. TextBox is implemented based on PyTorch, and released under Apache License 2.0 at https://github.com/RUCAIBox/TextBox.

View on arXivView PDF

Code Implementations(1)

RUCAIBox/TextBoxOfficial100%
PyTorchMIT

TextBox 2.0 is a text generation library with pre-trained language models

1,093112Python, HTMLNov 8, 20203 years agoMIT
deep-learningnatural-language-generationnatural-language-processingpretrained-modelspython+3 more

Similar Papers

Cite this paper

@article{li2021textbox,
  title  = {TextBox: A Unified, Modularized, and Extensible Framework for Text Generation},
  author = {Junyi Li and Tianyi Tang and Gaole He and Jinhao Jiang and Xiaoxuan Hu and Puzhao Xie and Zhipeng Chen and Zhuohao Yu and Wayne Xin Zhao and Ji-Rong Wen},
  year   = {2021},
  eprint = {2101.02046},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.02046}
}

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

Discussion