This repo provides the source code & data of our paper: Multi-view Contrastive Learning for Entity Typing over Knowledge Graph.
- conda create -n mclet python=3.7 -y
- PyTorch 1.8.1
- dgl 0.6.1
- scipy 1.7.3
- Download the datasets from Here.
- Create the root directory ./data and put the dataset in.
sh FB15kET.sh
sh YAGO43kET.sh
- Note: Before running, you need to create the ./logs folder first.
If you find this code useful, please consider citing the following paper.
@article{
author={Zhiwei Hu and Víctor Gutiérrez-Basulto and Zhiliang Xiang and and Ru Li and Jeff Z. Pan},
title={Multi-view Contrastive Learning for Entity Typing over Knowledge Graph},
publisher="The Conference on Empirical Methods in Natural Language Processing",
year={2023}
}
We refer to the code of CET, TET, and MiNer. Thanks for their contributions.