Skip to content

Fix matcher flags and spaCy overlaps, reduce index memory, and add offline tests - #103

Draft
soldni wants to merge 1 commit into
masterfrom
codex/matcher-index-tests
Draft

soldni wants to merge 1 commit into
masterfrom
codex/matcher-index-tests

Conversation

@soldni

@soldni soldni commented Nov 17, 2026

Copy link
Copy Markdown
Member

QuickUMLS.match() silently ignored best_match and ignore_syntax, and overlapping candidates could crash the spaCy component. This change forwards both flags, registers a spaCy 3 factory, and preserves candidate details while respecting entities already on the document. It also adds a standalone model override, server-side semantic-type filtering, and an optional LevelDB dependency for legacy indexes.

The installer now tracks duplicate terms and CUI pairs in temporary SQLite storage. On one full 2026AB English build per revision on the same Mac, peak memory fell from 12.02 GiB to 9.26 GiB and elapsed time rose from 234 to 263 seconds. All 1,078 SimString files matched byte for byte.

The default suite uses a fictional vocabulary and exercises the native installer and matcher offline. Run python -m unittest discover -s tests -v or try python tests/standin.py "amber stone". All eight tests passed from the feature worktree. Licensed release validation remains opt-in. A native Windows install and a memory-limited WSL build remain unverified.

Related issues: #60, #64, #69, #74, #79, #91, #94, #98, #102.

This branch has not been deployed

No deployments
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