Skip to content

Commit a355483

Browse files
committed
fix: embeddings order
1 parent f5459e5 commit a355483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrdf2vec/rdf2vec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def get_walks(self, kg: KG, entities: Entities) -> List[List[SWalk]]:
161161
162162
"""
163163
# Avoids duplicate entities for unnecessary walk extractions.
164-
entities = list(dict(zip(entities, entities)))
164+
entities = list(set(entities))
165165
if kg.skip_verify is False and not kg.is_exist(entities):
166166
if kg.mul_req:
167167
asyncio.run(kg.connector.close())

0 commit comments

Comments
 (0)