lirian3888

Results 2 comments of lirian3888

补充说明:path1_results 中的one_hop_triples 里的三元组不是node id

def _get_one_hop_triples_from_nodes(self, node_list: list) -> list: one_hop_triples = [] node_set = set(node_list) for u, v, data in self.graph.edges(data=True): if u in node_set or v in node_set: relation = data.get('relation', '')...