Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show original label from matched entities in extraction results #318

Open
caufieldjh opened this issue Feb 2, 2024 · 0 comments
Open

Show original label from matched entities in extraction results #318

caufieldjh opened this issue Feb 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@caufieldjh
Copy link
Member

Extractions currently show results like so:

prompt: |+
  Split the following piece of text into fields in the following format:

  phenotypes: <A semicolon-separated list of human phenotypes, including symptoms of disease. It must be semicolon-separated. Labels containing the word 'with' should be split into multiple phenotypes.>
  label: <The label (name) of the named thing>


  Text:
  the patient had a middle ear infection

  ===

extracted_object:
  id: 53239082-f074-4ca5-9eeb-49dd2095de35
  label: patient
  phenotypes:
    - HP:0000388
named_entities:
  - id: HP:0000388
    label: middle ear infection

In this case, the label shown is from the input text, but the HP label for HP:0000388 is Otitis media.
The results should show which labels are from synonyms (as in this case) or are exact matches.

per convo with @twhetzel

@caufieldjh caufieldjh added the enhancement New feature or request label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant