2 Star 0 Fork 0

Zehebi / Crosslingula-KG-Matching

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

About this Code

This is the code for our ACL paper entitled Cross-lingual Knowledge Graph Alignment via Graph Matching Neural Network.

Env Setting

Python 3.5 (important!)
Tensorflow 1.8.0
scipy
tqdm
argparse
codecs

How To Run The Codes

To train your model, you need:

(1) Generate the training data by using the following command under DBP15K dataset: (take zh_en as an example)

python3 preprocessor.py zh_en train 20  # gen the training examples
python3 preprocessor.py zh_en test 1000 # gen the test examples
python3 preprocessor.py zh_en dev  1000  # gen the dev examples

Note:
For the first time, it may take almost 3-4 hours to generate the candiate file.
You may also choose to directly download these files from https://drive.google.com/open?id=1dYJtj1_J4nYJdrDY95ucGLCuZXDXI7PL and directly use them to train the model.

(2) Train & Test the model: (take zh_en as an example)

python3 run_model.py train zh_en zh_en_model -epochs=10 -use_pretrained_embedding
python3 run_model.py test zh_en zh_en_model -use_pretrained_embedding

How To Cite The Codes

Please cite our work if you like or are using our codes for your projects!

Kun Xu, Mo Yu, Yansong Feng, Yan Song, Zhiguo Wang and Dong Yu, "Cross-lingual Knowledge Graph Alignment via Graph Matching Neural Network", arXiv preprint arXiv:1905.11605.

@article{xu2019graphmatching, title={Cross-lingual Knowledge Graph Alignment via Graph Matching Neural Network}, author={Xu, Kun and Wang, Liwei and Yu, Mo and Feng, Yansong and Song, Yan and Wang, Zhiguo and Yu, Dong}, year={2019} }

空文件

简介

graph matching 展开 收起
Python
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HangbinZheng/Crosslingula-KG-Matching.git
git@gitee.com:HangbinZheng/Crosslingula-KG-Matching.git
HangbinZheng
Crosslingula-KG-Matching
Crosslingula-KG-Matching
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891