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

Function infer_conference_key

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

Infer a normalized conference key from categories or venue text.

(paper: Dict)

Source from the content-addressed store, hash-verified

571
572
573def infer_conference_key(paper: Dict) -> str:
574 """Infer a normalized conference key from categories or venue text."""
575 supported = ("neurips", "icml", "iclr", "cvpr", "iccv", "eccv", "acl", "emnlp", "acmmm")
576 categories = [str(category).lower().strip() for category in paper.get("categories", [])]
577 for conference in supported:
578 if conference in categories:
579 return conference
580
581 venue = str(paper.get("venue") or "").lower()
582 venue_aliases = {
583 "acm multimedia": "acmmm",
584 }
585 for alias, conference in venue_aliases.items():
586 if alias in venue:
587 return conference
588 for conference in supported:
589 if conference in venue:
590 return conference
591 return ""
592
593
594def compute_relevance_signal(paper: Dict, profile: Dict) -> float:

Callers 2

estimate_quality_scoreFunction · 0.85
get_source_bucketFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected