Home

Awesome

CANE

Source code and datasets of ACL2017 paper: "CANE: Context-Aware Network Embedding for Relation Modeling"

Datasets

This folder "datasets" contains three datasets used in CANE, including Cora, HepTh and Zhihu. In each dataset, there are two files named "data.txt" and "graph.txt".

Besides, there is an additional "group.txt" file in Cora.

Run

Run the following command for training CANE:

python3 run.py --dataset [cora,HepTh,zhihu] --gpu gpu_id --ratio [0.15,0.25,...] --rho rho_value

For example, you can train like:

python3 run.py --dataset zhihu --gpu 0 --ratio 0.55 --rho 1.0,0.3,0.3

Experimental Results

The experimental results are generated by the newest version of codes:

0.150.250.350.450.550.650.750.850.95
cora85.290.592.293.593.493.694.49592.5
HepTh8589.791.79594.494.295.195.893.1
zhihu64.567.169.269.97272.272.572.873.3

Dependencies

Cite

If you use the code, please cite this paper:

Cunchao Tu, Han Liu, Zhiyuan Liu, Maosong Sun. CANE: Context-Aware Network Embedding for Relation Modeling. The 55th Annual Meeting of the Association for Computational Linguistics (ACL 2017).

For more related works on network representation learning, please refer to my homepage.