CoKE: Contextualized Knowledge Graph Embedding
Table 5: Number of entities, relations, triples and paths in each split of the two datasets.
['[EMPTY]', 'WordNet', 'Freebase']
Guu et al. Paths used for training are sampled from the graph composed of training triples alone, with the following procedure: (1) Uniformly sample a path length k∈{2,⋯,5} and a starting entity s∈E. (2) Perform a random walk starting at s, continuing k steps by traversing r1, ⋯,rk, and reaching entity o. (3) Output a path s →r1 →⋯→rk→o. Paths of length 1 are not sampled, but constructed by directly adding training triples. Paths used for test are generated from the whole graph containing both training and test triples, with the same procedure. Test paths which also appear as training instances are removed. See Guu et al.