• Stars
    star
    113
  • Rank 308,372 (Top 7 %)
  • Language
    Python
  • Created about 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.