relationPrediction icon indicating copy to clipboard operation
relationPrediction copied to clipboard

A question about code

Open Zawo1995 opened this issue 6 years ago • 0 comments

Thanks for sharing code. Where debuging the code, I find a question about the 'graph_create',here is what I understand: the Graph is a dict<key,head_id of a triple:value,dict<key,tail_id:value,rel_id>>,when traverse the all_tipleshttps://github.com/deepakn97/relationPrediction/blob/785721b758e9c87144b5d271dd5daaa46bb1e6ea/create_batch.py#L233 the rel_id appear later would cover before,so the graph is incompleted,I was confused,can anyone give a explanation. ;) https://github.com/deepakn97/relationPrediction/blob/785721b758e9c87144b5d271dd5daaa46bb1e6ea/create_batch.py#L242

Zawo1995 avatar Oct 16 '19 08:10 Zawo1995