Repository navigation
Releases
Releases · crow-intelligence/chronowords
v0.3.0
chronowords 0.3.0
Documentation, design, and test-suite hardening. No breaking changes; one additive API change.
Added
- Subpackage re-exports so the documented imports work directly:
from chronowords.algebra import SVDAlgebra,from chronowords.topics import TopicModel,
from chronowords.alignment import ProcrustesAligner,from chronowords.utils import CountMinSketch.
(These previously raisedImportError.) - Runnable Quickstart, a semantic-shift Tutorial, and a Troubleshooting page.
- Property-based tests (save/load round-trips, Procrustes isometry, PPMI non-negativity);
PRE-MORTEM.md,MUTATION_TESTING.md,CHANGES_SUMMARY.md; a README roadmap.
Changed
- Every public-API docstring rewritten as an honest contract (preconditions, raised
exceptions, silently-swallowed errors), including the CythonPPMIComputer. - Safe, behaviour-preserving type annotations on
ProcrustesAligner. - Docs now build with zero Sphinx warnings.
- Removed the deprecated
sphinx-autodoc-typehintsdocs extension (types render via
built-in autodoc).
Notes
- No runtime behaviour changes. Known limitations and follow-ups are listed in the
README "Roadmap / further work" section andPRE-MORTEM.md.
v0.2.1
v0.2.0
Build & Tooling
- Migrated from Poetry to uv for package management
- Converted pyproject.toml to PEP 621 standard
- Updated all 5 GitHub Actions workflows to use uv
- Added MANIFEST.in for proper sdist builds with Cython extensions
Performance & Memory
- Replaced full dense SVD with truncated SVD (
scipy.sparse.linalg.svds) operating directly on sparse PPMI matrices — eliminates ~800MB dense allocation for 10k vocabularies - Added O(1) dict-based vocabulary lookups in SVDAlgebra and ProcrustesAligner, replacing O(n) list scans
- Vectorized CountMinSketch update/query using numpy fancy indexing
- Added
track_keysparameter to CountMinSketch to skip observed-key tracking when not needed (saves millions of string entries during skipgram counting) - Pre-computed unified vocabulary mappings in TopicModel.align_with() before O(n_topics²) loop
- Replaced print statements with proper logging
Tests
- Expanded test suite from 27 to 41 tests while reducing runtime from 12.4s to 2.4s
- Added coverage for distance(), analogy(), get_word_similarity(), single-topic models, edge cases
- Consolidated duplicate CMS tests, removed debug print statements
- Created shared conftest.py with reusable fixtures
- Fixed typo: renamed ProcustesAligner → ProcrustesAligner (breaking change)
Breaking Changes
ProcustesAlignerrenamed toProcrustesAlignerCountMinSketch.get_heavy_hitters()raisesRuntimeErrorif `track_keys=False