MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / estimate_quality_score

Function estimate_quality_score

deployments/feishu/daily-push-agent/main.py:539–570  ·  view source on GitHub ↗

Estimate a coarse paper quality score from source / venue metadata.

(paper: Dict)

Source from the content-addressed store, hash-verified

537 journal = str(paper.get("journal") or "").lower()
538 conference_key = infer_conference_key(paper)
539 venue = str(paper.get("venue") or "").lower()
540
541 if source == "journal":
542 if journal in {"nature", "science", "cell"}:
543 return 0.95
544 if "nature" in venue or "science" in venue or "cell" in venue:
545 return 0.9
546 return 0.75
547
548 if source == "openreview":
549 if conference_key in {"neurips", "icml", "iclr"}:
550 return 0.85
551 if conference_key in {"acl", "emnlp", "cvpr", "iccv", "eccv", "acmmm"}:
552 return 0.8
553 if any(name in venue for name in ("neurips", "icml", "iclr")):
554 return 0.85
555 if any(name in venue for name in ("acl", "emnlp", "cvpr", "iccv", "eccv", "acm multimedia")):
556 return 0.8
557 return 0.72
558
559 if source == "arxiv":
560 categories = [str(category).lower() for category in paper.get("categories", [])]
561 if any(category.startswith("q-bio") for category in categories):
562 return 0.62
563 return 0.58
564
565 return 0.6
566
567
568def infer_conference_key(paper: Dict) -> str:
569 """Infer a normalized conference key from categories or venue text."""
570 supported = ("neurips", "icml", "iclr", "cvpr", "iccv", "eccv", "acl", "emnlp", "acmmm")
571 categories = [str(category).lower().strip() for category in paper.get("categories", [])]
572 for conference in supported:
573 if conference in categories:

Callers 1

prepare_paper_featuresFunction · 0.85

Calls 2

infer_conference_keyFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected