Repository navigation
feat: add gold dataset curation utility, annotation schema, and candidate filtering (#5) - #36
Open
Pranav-0440 wants to merge 1 commit into
Open
Pranav-0440 wants to merge 1 commit into
Pranav-0440 wants to merge 1 commit into
Conversation
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.
Closes #5
Related to #1
Summary
This PR establishes the foundation for the paper-text-annotated gold dataset required for PDF extractor benchmarking (#1) and SAGE extraction evaluation. It delivers an agreed annotation schema, candidate paper filtering from
PecanProject/betydata, automated DOI-based PDF acquisition, and validation tooling.Key Changes
1. Documented Annotation Schema & Architecture (
docs/annotation_schema.md)highlight,note,image, page index, bounding rects, and tags).2. Candidate Filtering Utility (
src/curation/filter.py)PecanProject/betydata(either locally or streamed directly from GitHub).managements_treatments)traitsview)3. Open Access PDF Acquisition (
src/curation/downloader.py)%PDF-) to prevent saving error HTML or paywall pages.4. Curation CLI (
src/curation/cli.py)Provides three subcommands:
5. Datasets & Schemas (
data/gold_dataset/)data/gold_dataset/manifest.json: Top 25 candidate papers from BETYdata ready for pilot acquisition.data/gold_dataset/candidates_summary.csv: Tabular overview of candidate metadata, treatments, managements, and species.data/gold_dataset/sample_gold_annotations.json: Verified reference annotations demonstrating verbatim paper provenance linked to harmonized BETYdb targets.Testing & Verification
src/tests/test_curation.pycovering:test_clean_doi)test_gold_annotation_model_validation,test_paper_manifest_serialization)test_candidate_filter_*)test_downloader_*)test_cli_*)pytest tests/test_curation.py # 10 passed in 0.74s