Code for our paper Unified Semantic Typing with Meaningful Label Inference at NAACL 2022.
- pytorch == 1.9.1
- transformers == 4.10.2
- scikit-learn
Download UFET dataset and place the crowdsourced portion under data/ufet
.
Download TACRED dataset to data/tacred
.
Download MAVEN dataset to data/maven
.
Download FewRel dataset to data/fewrel
and run
python data/fewrel/process_fewrel.py
The training scripts are provided under ./scripts
. For example, to train a UniST base model on TACRED, run
bash ./scripts/run_tacred.sh
@inproceedings{huang-etal-2022-unified,
title = "Unified Semantic Typing with Meaningful Label Inference",
author = "Huang, James Y. and
Li, Bangzheng and
Xu, Jiashu and
Chen, Muhao",
booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
year = "2022",
address = "Seattle, United States",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.naacl-main.190",
pages = "2642--2654"
}