File tree Expand file tree Collapse file tree 4 files changed +30021
-5
lines changed
Expand file tree Collapse file tree 4 files changed +30021
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ The code for the research paper [Aligning Cross-lingual Entities with Multi-Aspe
55
66* Our code is built on top of [ GCN-Align] ( https://github.com/1049451037/GCN-Align ) .
77
8+ ## Quick Demo
9+ We store the embeddings for demo in the directory ` demo_embd ` , and we can evaluate ` ZH-EN ` as follows:
10+ ```
11+ python weighted_concat.py -d demo_embd/pairwise_dump.json -g demo_embd/zh_en_graph_embd.pkl -i data/zh_en/test
12+ ```
13+
14+
815## Run Graph-based Embeddings (HMAN/MAN)
916
1017#### HMAN
@@ -21,7 +28,7 @@ python run.py --lang zh_en --gpu 0 --hybrid 0
2128```
2229bash train_bert.sh 0 1
2330```
24- Note that you need to stop the training manually.
31+ ( Note that you need to stop the training manually.)
2532
2633#### Evaluation
2734```
@@ -30,9 +37,7 @@ bash eval_bert.sh 0 1
3037
3138## Integration
3239```
33- python weighted_concat.py --desc relogic/saves/pair_matching/1/pairwise_dump.json \
34- --graph graph_ckpt/zh_en_graph_embd.pkl \
35- --ill data/zh_en/test
40+ python weighted_concat.py --desc relogic/saves/pair_matching/1/pairwise_dump.json --graph graph_ckpt/zh_en_graph_embd.pkl --ill data/zh_en/test
3641```
3742
3843
You can’t perform that action at this time.
0 commit comments