All models

Text2Event

Text2Event, a sequence-to-structure model that extracts events directly from text.

Language · 1,466 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (62 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
222.9M
Operations
1,466
Framework
PyTorch
Recurrent
No
Published
ACL 2021
Cited by
14 (as of 27 October 2026)
Authors
Yaojie Lu, Hongyu Lin, Jin Xu and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20940
Graph hash
cee28da714b8c27bc3b1eceb53d5bcf5a69ac4def006f907b86312719438f25f
Skeleton hash
fb9db3c096168d1e61637653a5ad5a0a77555f869eb16dd536fb2e83966c517e
Architecture hash
ca433e1a9e4e8fd1ae4a24f25d5e3c162641b6012d0c54176ea45a9614985957
Diagram SHA-256
208fb291124a6744cf6ad393446cc1ebbd4ca5b88450180587fe594b78ae4336
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Text2Event treats event extraction as generation: it is a sequence-to-structure model that directly extracts events from text in an end-to-end manner. The paper describes event extraction as challenging because of the complex structure of event records and the semantic gap between text and event, and notes that traditional methods decompose the structure prediction task into multiple subtasks.

The authors design three parts: a sequence-to-structure network for unified event extraction, a constrained decoding algorithm that injects event knowledge during inference, and a curriculum learning algorithm for efficient model learning. In the released code the network can be trained from T5-base, and each event is written in a linearized form that uses the extra characters of T5, such as <extra_id_0> and <extra_id_1>, as structure indicators. An event schema file builds the trie used for constrained decoding. The code notes that constrained decoding does not yet support beam search.

The authors report competitive performance using only record-level annotations in both supervised learning and transfer learning settings. The paper was accepted to ACL2021 (main conference).

Key idea. Text2Event casts event extraction as sequence-to-structure generation, extracting events directly from text end to end with a single model, constrained decoding and curriculum learning.

  • Text2Event
  • event extraction
  • end-to-end event extraction
  • sequence-to-structure generation
  • controllable sequence-to-structure generation
  • constrained decoding
  • information extraction
  • T5 event extraction

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{lu2021text2eventcontrollablesequencetostructuregeneration,
      title={Text2Event: Controllable Sequence-to-Structure Generation for End-to-end Event Extraction}, 
      author={Yaojie Lu and Hongyu Lin and Jin Xu and Xianpei Han and Jialong Tang and Annan Li and Le Sun and Meng Liao and Shaoyi Chen},
      year={2021},
      eprint={2106.09232},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2106.09232}, 
}