(paper: Dict[str, Any])
| 86 | |
| 87 | |
| 88 | def _keywords(paper: Dict[str, Any]) -> str: |
| 89 | candidates: List[str] = [] |
| 90 | for key in ("keywords", "topics", "categories", "subjects"): |
| 91 | candidates.extend(_normalize_list(paper.get(key))) |
| 92 | return " ".join(dict.fromkeys(item.lower() for item in candidates if item)) |
| 93 | |
| 94 | |
| 95 | def _relation_for_action(action: str, action_type: str) -> Optional[str]: |
no test coverage detected