Skip to content
/ LEAR Public

The implementation our EMNLP 2021 paper "Enhanced Language Representation with Label Knowledge for Span Extraction".

Notifications You must be signed in to change notification settings

Akeepers/LEAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9d34293 · Jul 22, 2022

History

8 Commits
Sep 6, 2021
Nov 21, 2021
Sep 6, 2021
Sep 6, 2021
Sep 6, 2021
Jul 22, 2022
Dec 17, 2021
Sep 6, 2021
Sep 6, 2021
Sep 6, 2021

Repository files navigation

LEAR

The implementation our EMNLP 2021 paper "Enhanced Language Representation with Label Knowledge for Span Extraction".

See below for an overview of the model architecture:

Requestments

  • python 3.6
  • pytorch 1.8
  • transformers 3.9.2
  • prefetch_generator
  • tokenizers

Data

Note: The thunlp has updated the repo HMEAE recently, which causing the mismatch of data. Make sure you use the earlier version for ED task.

Task Url Rreprocess scripts
NER mrc-for-flat-nested-ner -
Event Detection ACE 2005 HMEAE

Train

The details of hyper-parameter setting is listed in our paper - A.3.

  • For NER task, run run_ner.py.
  • For Event Detection task, run run_trigger_extraction.py

Evaluation

  • Nested: set exist_nested=True.
  • Flat: set span_decode_strategy=v5.

About

The implementation our EMNLP 2021 paper "Enhanced Language Representation with Label Knowledge for Span Extraction".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages