Skip to content

Remove NodeNorm's code for determining the preferred name for a clique #299

Description

@gaurav

NodeNorm has always calculated the preferred name for a clique itself, even though we need to calculate this in Babel so we can use it in NameRes:

https://github.com/TranslatorSRI/NodeNormalization/blob/13ba01efc06ba73d0e9ebacb7c8d277c8f4e680b/node_normalizer/normalizer.py#L707-L736

This means we need to manually keep this in sync with Babel.

As we redesign NodeNorm's database to add clique-level properties (#302), we should see if we can use the preferred name from the compendium files instead of having to recalculate them here.

Update: PR #386 updated NodeNorm to use the Babel preferred name where available, but we fallback to the old (buggy -- see #396) logic if a preferred name is not present. Once I confirm that everything has a preferred name (NCATSTranslator/Babel#940), we can remove this code entirely.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions