AnselCmy / MetaR

Source code for the EMNLP 2019 paper "Meta Relational Learning for Few-Shot Link Prediction in Knowledge Graphs"
Apache License 2.0
111 stars 19 forks source link

the method of limiting the candidate entities #2

Closed JiyaoWei closed 2 years ago

JiyaoWei commented 3 years ago

Hello, AnselCmy

Can you help me understand the method of limiting the candidate entities, in "One-Shot Relational Learning for Knowledge Graphs". Many people cited your paper, but they have not given a specific parameters.

How did you make specific restrictions in your experiment? Can you show your code for generating the candidate set?

Looking forward to your reply!

AnselCmy commented 3 years ago

Type constrain is applied for limiting the candidate entities, and you can refer to the example code in OpenKE (https://github.com/thunlp/OpenKE/blob/OpenKE-PyTorch/benchmarks/FB15K237/n-n.py) for details of generating such constrain.