Skip to content

Commit

Permalink
Update lexical_indexer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Nov 21, 2023
1 parent 2938a69 commit 17dfea1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/oaklib/utilities/lexical/lexical_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,11 @@ def lexical_index_to_sssom(
# mappings.append(create_mapping(oi, term, r1, r2))
logging.info("Done creating SSSOM mappings")

# TODO what's the business logic for combining these three
# different streams of prefix maps?
converter = curies.chain(
[
Converter.from_prefix_map((meta or {}).pop(CURIE_MAP, {})),
oi.converter,
ensure_converter(prefix_map, use_defaults=False),
oi.converter,
]
)
msdf = MappingSetDataFrame.from_mappings(mappings=mappings, metadata=meta, converter=converter)
Expand Down

0 comments on commit 17dfea1

Please sign in to comment.