Infer a normalized conference key from categories or venue text.
(paper: Dict)
| 571 | |
| 572 | |
| 573 | def 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 | |
| 594 | def compute_relevance_signal(paper: Dict, profile: Dict) -> float: |
no test coverage detected