项目
在 GitHub 查看
nlpcl-lab/bert-event-extraction
关于
基于 BERT,在 ACE 2005 语料库上完成事件抽取任务的 PyTorch 实现。
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文bert-event-extraction
Pytorch Solution of Event Extraction Task using BERT on ACE 2005 corpus
Prerequisites
Prepare ACE 2005 dataset.
Use nlpcl-lab/ace2005-preprocessing to preprocess ACE 2005 dataset in the same format as the data/sample.json. Then place it in the data directory as follows:
├── data │ └── test.json │ └── dev.json │ └── train.json │...Install the packages.
pip install pytorch==1.0 pytorch_pretrained_bert==0.6.1 numpy
Usage
Train
python train.py
Evaluation
python eval.py --model_path=latest_model.pt
Result
Performance
| Method | Trigger Classification (%) | Argument Classification (%) | ||||
|---|---|---|---|---|---|---|
| Precision | Recall | F1 | Precision | Recall | F1 | |
| JRNN | 66.0 | 73.0 | 69.3 | 54.2 | 56.7 | 55.5 |
| JMEE | 76.3 | 71.3 | 73.7 | 66.8 | 54.9 | 60.3 |
| This model (BERT base) | 63.4 | 71.1 | 67.7 | 48.5 | 34.1 | 40.0 |
The performance of this model is low in argument classification even though pretrained BERT model was used. The model is currently being updated to improve the performance.
Reference
探索相关项目
加载中…