Skip to content

Commit

Permalink
fix merge impl
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Apr 18, 2023
1 parent 77c6ed4 commit 402b416
Show file tree
Hide file tree
Showing 2 changed files with 20,070 additions and 1,191 deletions.
3 changes: 3 additions & 0 deletions examples/nrel_pnnl/merge/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,14 @@ def get_initial_mapping(g1, g2, typ, ns):
inp = input("> ")
if inp == 'done':
return mapping
if not inp:
continue
parts = inp.split(' ')
g1idx, g2idx = int(parts[0]), int(parts[1])
mapping[g1ents[g1idx].uri] = g2ents[g2idx].uri
g1ents.pop(g1idx)
g2ents.pop(g2idx)
return mapping


def get_pairs_by_type(g1, g2, typ, ns, mapping=None) -> List[Tuple[EntityFeature, EntityFeature]]:
Expand Down
Loading

0 comments on commit 402b416

Please sign in to comment.