Skip to content

fix: read catalogue-form author names given name first - #60

Merged
hedmana merged 1 commit into
mainfrom
fix/catalogue-author-names
Sep 30, 2026
Merged

hedmana merged 1 commit into
mainfrom
fix/catalogue-author-names

Conversation

@hedmana

@hedmana hedmana commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Closes #59

What

  • graph.build.clean rewrites author names in library-catalogue form, Last, First 1968-, as First Last with the life dates dropped. Names in a script written family name first (CJK) lose the comma but keep their order. Names with no comma or with several commas, such as an organization with its address, are left alone.
  • The cleaning report counts the names it rewrote, as renamed_authors.

Why

The client joins author names with commas, so a catalogue-form name read as two people: "Olivier Chapelle, Schölkopf, Bernhard 1968-, Alexander Zien". On the current raw crawl the rule rewrites 267 name occurrences (252 distinct names). The cleaned graph has the same nodes, edges and per-work author counts as the served gnn-20260929, and the model only reads the author count, so neither the dataset nor the model changes.

The rule only fixes name order. Mojibake (Siekmann, Jörg becomes Jörg Siekmann) and ids OpenAlex appends (Y Yang (6099497)) are separate issues.

Verify

uv run pytest tests/test_build.py
uv run python -m graph.build --field gnn   # logs renamed_authors; the snapshot needs gnn.dataset and gnn.train before the API can serve it

Generated with Claude Code

@hedmana
hedmana merged commit 722ffe9 into main Sep 30, 2026
4 checks passed
@hedmana
hedmana deleted the fix/catalogue-author-names branch September 30, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Catalogue-form author names read as two people

1 participant