fix: remove ORCID from patent disambiguation scoring
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/head This commit looks good
This commit is contained in:
@@ -28,7 +28,6 @@ class AuthorProfile:
|
||||
name_variants: list[str] = field(default_factory=list)
|
||||
institutions: list[str] = field(default_factory=list)
|
||||
topics: list[str] = field(default_factory=list)
|
||||
orcid: str | None = None
|
||||
coauthor_last_names: set[str] = field(default_factory=set)
|
||||
publication_keywords: set[str] = field(default_factory=set)
|
||||
|
||||
@@ -47,7 +46,6 @@ def build_author_profile(author: Author, author_id: str) -> AuthorProfile:
|
||||
for topic in (author.topics or [])
|
||||
if topic and topic.display_name
|
||||
]
|
||||
orcid = _extract_orcid(author)
|
||||
variants = _build_name_variants(first_name, last_name, display_name)
|
||||
|
||||
return AuthorProfile(
|
||||
@@ -58,7 +56,6 @@ def build_author_profile(author: Author, author_id: str) -> AuthorProfile:
|
||||
name_variants=variants,
|
||||
institutions=institutions,
|
||||
topics=topics,
|
||||
orcid=orcid,
|
||||
)
|
||||
|
||||
|
||||
@@ -177,12 +174,6 @@ def _collect_publication_keywords(source: dict, keywords: set[str]) -> None:
|
||||
keywords.add(display_name.lower())
|
||||
|
||||
|
||||
def _extract_orcid(author: Author) -> str | None:
|
||||
if author.ids and author.ids.orcid:
|
||||
return str(author.ids.orcid)
|
||||
return str(author.orcid) if author.orcid else None
|
||||
|
||||
|
||||
def _extract_institutions(author: Author) -> list[str]:
|
||||
institutions: set[str] = set()
|
||||
for institution in author.last_known_institutions or []:
|
||||
|
||||
@@ -85,10 +85,6 @@ def score_patent(
|
||||
if "institution_match" in signals:
|
||||
break
|
||||
|
||||
if profile.orcid and patent.orcid and profile.orcid.lower() in patent.orcid.lower():
|
||||
score += 5
|
||||
signals.append("orcid_match")
|
||||
|
||||
topic_hits = 0
|
||||
for topic in profile.topics:
|
||||
if topic.lower() in title_abstract:
|
||||
|
||||
@@ -14,7 +14,6 @@ class PatentEntry(BaseModel):
|
||||
assignees: list[str] = Field(default_factory=list)
|
||||
ipc: list[str] = Field(default_factory=list)
|
||||
country: str | None = None
|
||||
orcid: str | None = None
|
||||
confidence_score: int = 0
|
||||
match_signals: list[str] = Field(default_factory=list)
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ export interface PatentEntry {
|
||||
assignees: string[];
|
||||
ipc: string[];
|
||||
country: string | null;
|
||||
orcid?: string | null;
|
||||
confidence_score: number;
|
||||
match_signals?: string[];
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ const SIGNAL_LABELS: Record<string, string> = {
|
||||
last_name_match: 'Nachname',
|
||||
first_name_match: 'Vorname',
|
||||
institution_match: 'Institution',
|
||||
orcid_match: 'ORCID',
|
||||
topic_match: 'Forschungsthema',
|
||||
coauthor_match: 'Ko-Autor',
|
||||
publication_topic_match: 'Publikations-Thema',
|
||||
|
||||
Reference in New Issue
Block a user