What's Changed
Significant update that has refactored much of the PyTerrier source code and renamed many classes as we progress towards a PyTerrier 1.0 release.
The most significant changes are:
pt.init()
is no longer required 😃. If necessarypt.java
methods can be used to change Java initialisationpt.BatchRetrieve
is nowpt.terrier.Retriever
, and similar changes for other Terrier indexers and retrieverspt.AnseriniBatchRetrieve
is now in its own separate project, PyTerrier-Anserini, with various improvements
All changes are backwards compatible in this release - deprecation warnings will guide you how to update your code.
More details below:
Improvements
- Move all Java/JNIUS code into pt.java, move all Terrier code into pt.terrier; remove pt.init() by @seanmacavaney in #447
- dynamic module loading by @seanmacavaney in #461
- Incorporate Retrieval Scores into RM3 by @mam10eks in #453
- pt.apply for making an indexer by @cmacdonald in #467
- query_toks support for terrier.Retriever by @cmacdonald in #466
- add save_mode='warn' and save_mode='error' to pt.Experiment (warn as default) by @cmacdonald in #408
### Refactoring
- Deprecate DFIndexer by @cmacdonald in #457
- pt.terrier.rewrite revisions - remove Axiomatic, remove terrier-prf by @seanmacavaney in #472
- shims for deprecated modules by @seanmacavaney in #476
- text_loader abstraction for pt.text.get_text by @seanmacavaney in #469
- move Anserini to a separate project by @seanmacavaney in #473
Documentation
- Add RankVicuna and RankZephyr Plugins by @kaustubhdhole in #441
- Update tuning.rst by @albertoueda in #446
- Add PyTerrier_ChatNoir to the plugin section by @mam10eks in #452
- Remove nptyping dependency to assure numpy 2 compatability by @cmacdonald in #445
Minor
- change all tests to use new terrier retriever names, but check old names too by @cmacdonald in #458
- Parallel fixes by @seanmacavaney in #462
- fix logger error by @seanmacavaney in #464
- Add comments to requirements.txt by @cmacdonald in #465
- failing anserini tests due to version 0.36.0, disabling for now by @seanmacavaney in #468
- remove the writing of a default terrier.properties file by @cmacdonald in #470
- fix test_maven by @seanmacavaney in #471
- Python 3.12 in GHA by @cmacdonald in #459
- Bump most JDK version tested in GHA to 21 by @cmacdonald in #475
- Update pt.terrier.Retriever str and repr #474
New Contributors
- @kaustubhdhole made their first contribution in #441
- @mam10eks made their first contribution in #452
Full Changelog: 0.10.1...0.11.0