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

✨ Add zero shot relations extraction #27

Merged
merged 15 commits into from
Nov 8, 2022

Conversation

GabrielePicco
Copy link
Contributor

Add zero shot relations extraction

Status Type ⚠️ Core Change Issue
Hold Feature Yes

Description

  • Extend the current framework to add zero shot RE capabilities
  • Add a new RE visualisation in zshot displacy to render entities and relations

Screenshot 2022-10-26 at 14 12 32

Other changes (e.g. bug fixes, small refactors)

  • Refactor the evaluation pipeline

Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
@codecov
Copy link

codecov bot commented Oct 29, 2022

Codecov Report

Base: 91.69% // Head: 92.14% // Increases project coverage by +0.45% 🎉

Coverage data is based on head (5d4eba8) compared to base (ee170c6).
Patch coverage: 91.81% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   91.69%   92.14%   +0.45%     
==========================================
  Files          53       67      +14     
  Lines        2024     2726     +702     
==========================================
+ Hits         1856     2512     +656     
- Misses        168      214      +46     
Impacted Files Coverage Δ
zshot/utils/alignment_utils.py 100.00% <ø> (ø)
zshot/utils/data_models/span.py 91.30% <75.00%> (+6.30%) ⬆️
zshot/relation_extractor/relations_extractor.py 75.51% <75.51%> (ø)
zshot/utils/displacy/displacy.py 75.51% <75.51%> (ø)
...hot/relation_extractor/zsrc/zero_shot_rel_class.py 79.62% <79.62%> (ø)
zshot/utils/data_models/relation_span.py 85.71% <85.71%> (ø)
zshot/evaluation/dataset/fewrel/fewrel.py 92.85% <92.85%> (ø)
zshot/tests/utils/test_displacy.py 93.10% <93.10%> (ø)
zshot/utils/displacy/relations_render.py 95.16% <95.16%> (ø)
zshot/relation_extractor/zsrc/data_helper.py 97.22% <97.22%> (ø)
... and 23 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

GabrielePicco and others added 10 commits November 1, 2022 11:45
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
Signed-off-by: Gabriele Picco <piccogabriele@gmail.com>
@GabrielePicco GabrielePicco merged commit bea91c7 into main Nov 8, 2022
@GabrielePicco GabrielePicco deleted the relationships-extraction-and-viz branch November 8, 2022 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants