Open meaningful96 opened 1 year ago
even if the get_neighbor_desc
doesn't take the true tail's id during training, isn't it possible to get the True id from the neighbors in the link graph?
I am not entirely clear about your question, but I guess you are asking whether the groundtruth tail entity will be leaked in the input during test stage?
The link graph used to get entity neighbors is constructed based on training data. So, it is possible that the groundtruth tail entity will be included in the 2-hop or 3-hop neighbors of the head entity. But this is OK as we do not assume access to the test labels.
Oh yes, that's what I wondered. Thanks!!
I have a question about code implementation. First, in the doc.py section
Looking at this part, when the number of tokens is less than 20, the description of the neighbors is included. By the way, in the predict.py file
According to this part, additional description will be included in the test, so isn't the description of the tail, which is the correct answer, even though the problem solving in the knowledge graph is to match the tail when the head and relation are given?