Skip to content

Optimize large NER XML annotation conversion - #12

Open
dpancic wants to merge 1 commit into
recogito:mainfrom
acdh-oeaw:feat/ner-bulk-annotations
Open

dpancic wants to merge 1 commit into
recogito:mainfrom
acdh-oeaw:feat/ner-bulk-annotations

Conversation

@dpancic

@dpancic dpancic commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Optimizes XML annotation conversion for large NER results by indexing TEI text positions once instead of repeatedly resolving XPath targets for every annotation.

Changes

  • add indexed XPointer lookup for TEI text nodes
  • preserve existing markup, annotations and taxonomy
  • preserve Unicode offsets and source IDs
  • keep Trigger.dev heartbeats active during large XML conversion
  • add regression coverage for 61,683 annotations over a large multi-paragraph source

Validation

Tested with Node 26 in Podman:

  • 14/14 tests passing
  • 61,683-annotation bulk conversion test passing
  • heartbeat regression test passing
  • git diff --check clean

@dpancic

dpancic commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

@blms Could you please review this when you have a chance? This ports the large NER XML bulk-conversion optimization and keeps the heartbeat behavior from PR #11.

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.

1 participant