Skip to content

Implement token-flow graph pruning #55

Description

@MikeHopcroft

Right now token-flow returns a graph with edges corresponding to each match of each of alias of an entity. For the matches with the same span, we really only want to look at the highest scoring. This change should probably be made in token-flow.

To see an example of an unpruned graph, uncomment the line in targets.ts that produces the following output:

============ Hypothetical target 466:1:\d+ ==============
============ Hypothetical target 2122166:1:\d+ ==============
============ Hypothetical target 2122166:1:\d+ ==============
============ Hypothetical target 466:1:\d+ ==============
============ Hypothetical target 777:1:\d+ ==============
============ Hypothetical target 466:1:\d+ ==============
============ Hypothetical target 466:1:\d+ ==============
============ Hypothetical target 466:\d+:\d+ ==============
============ Hypothetical target 2122166:\d+:\d+ ==============
============ Hypothetical target 2122166:\d+:\d+ ==============
============ Hypothetical target 466:\d+:\d+ ==============

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions