MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / publication_quality_score

Function publication_quality_score

scripts/common.py:275–285  ·  view source on GitHub ↗
(record: dict[str, Any])

Source from the content-addressed store, hash-verified

273
274
275def publication_quality_score(record: dict[str, Any]) -> int:
276 venue = normalize_whitespace(str(record.get("venue", ""))).lower()
277 source_url = normalize_whitespace(str(record.get("source_url", ""))).lower()
278 source = normalize_whitespace(str(record.get("source", ""))).lower()
279 doi = normalize_whitespace(str(record.get("doi", ""))).lower()
280 joined = " ".join([venue, source_url, source, doi])
281 if any(token in joined for token in PREPRINT_HINTS):
282 return 0
283 if venue or source == "crossref":
284 return 2
285 return 1
286
287
288def candidate_priority_score(record: dict[str, Any]) -> int:

Callers 3

candidate_priority_scoreFunction · 0.85
choose_best_title_matchFunction · 0.85

Calls 1

normalize_whitespaceFunction · 0.85

Tested by

no test coverage detected