Conversation
Also move custom function types to span_utils
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #14 +/- ##
===========================================
- Coverage 100.00% 99.30% -0.70%
===========================================
Files 7 11 +4
Lines 545 1159 +614
Branches 36 77 +41
===========================================
+ Hits 545 1151 +606
- Misses 0 4 +4
- Partials 0 4 +4 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Associated Issue(s): resolves #10, #11, #12, #13
Changes in this PR
Include all key changes in this pull request
spans/matchtospan_utilsspan_utilsignore_labelfunctionality from span utility methodsSpanAlignments(eval)construct_alignerfor building a span alignment method_spansfield to atuple)ref.jsonlandsys.jsonlto make local testing easier (tests/test_data)compute_metricsscript for computing document- and entity-level evaluation metrics (precision, recall, F1) for two span annotations JSONL files.Notes
spanerrlook ready for an alpha release?Notes for Testing
Case 1. Entity-level metrics with "select_first" alignment & "overlap_factor" scoring
Command:
Final Output
Case 2. Document-level metrics with "corppa" alignment & "jaccard" scoring
Command:
Final Output
Reviewer Checklist
compute_metricsscript locally with expected output (see Notes for Testing)