PubMed PII recovery + drop non-paper husks#159
Merged
Conversation
… map Hard real papers (Cell/Elsevier PIIs whose publisher pages hard-403): - _lookup_pubmed_pii: esearch by PII → PMID → esummary (title/authors/journal/ year/DOI), then OpenAlex (by DOI, else validated title) for abstract/ affiliations/citations. The documented-reliable path for PIIs. - _format_pii_variants: reformat bare ScienceDirect PIIs (S2405471224003120) to the punctuated form PubMed indexes (S2405-4712(24)00312-0). - _extract_ids now captures bare /pii/S... PIIs. PubMed runs before the (unreliable) Crossref PII query. Verified e2e: bare ScienceDirect PII → real title + authors. Genuine non-papers (no theme value, per "is this worth projecting?"): - drop_nonpaper_husks removes content-less papers (no title AND no abstract) on non-paper hosts (github.com, *.github.io, supabase, huggingface spaces/docs). Real-paper husks (biorxiv, cell, …) are kept for enrichment. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Two approved follow-ups for the husk tail. (1) PubMed E-utilities for Cell/Elsevier PIIs (esearch→PMID→esummary, then OpenAlex for abstract/affiliations); reformats bare ScienceDirect PIIs to PubMed's punctuated form; extracts bare /pii/ ids. Verified e2e. (2) drop_nonpaper_husks removes content-less papers on non-paper hosts (github, supabase, HF spaces/docs) — real-paper husks kept. 87 tests pass.