Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update changelog for 0.10.0 release #589

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to PISA will be documented in this file.
The format of the changes starting from 0.9.0 is based on
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.10.0](https://github.com/pisa-engine/pisa/releases/tag/v0.10.0)

### Fixed
- Quantize in range [1, 2^b) (#575)
- Build-system fixes (#588)

### Changed
- Require CMake 3.16 or higher (#583)
- Dynamic dispatch for block codecs (#579)
- Add virtual destructor to `PostingAcumulator` (#587)

## [0.9.0](https://github.com/pisa-engine/pisa/releases/tag/v0.9.0)

### Added
Expand Down
4 changes: 2 additions & 2 deletions include/pisa/scorer/quantized.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class QuantizingScorer {
QuantizingScorer(std::unique_ptr<IndexScorer> scorer, LinearQuantizer quantizer)
: m_scorer(std::move(scorer)), m_quantizer(quantizer) {}

[[nodiscard]] auto term_scorer(std::uint64_t term_id
) const -> std::function<std::uint32_t(std::uint32_t, std::uint32_t)> {
[[nodiscard]] auto term_scorer(std::uint64_t term_id) const
-> std::function<std::uint32_t(std::uint32_t, std::uint32_t)> {
return
[this, scorer = m_scorer->term_scorer(term_id)](std::uint32_t doc, std::uint32_t freq) {
auto score = scorer(doc, freq);
Expand Down
4 changes: 2 additions & 2 deletions test/test_recursive_graph_bisection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ using namespace pisa;

using StrColl = std::vector<std::vector<std::pair<std::string, std::uint32_t>>>;

[[nodiscard]] auto
coll_to_strings(std::string const& coll_file, std::string const& doclex_file) -> StrColl {
[[nodiscard]] auto coll_to_strings(std::string const& coll_file, std::string const& doclex_file)
-> StrColl {
auto doclex_buf = Payload_Vector_Buffer::from_file(doclex_file);
pisa::Payload_Vector<> doclex(doclex_buf);
pisa::binary_freq_collection coll(coll_file.c_str());
Expand Down
6 changes: 3 additions & 3 deletions tools/read_collection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

using namespace pisa;

[[nodiscard]] auto print_function(
std::optional<std::string> const& map_file, std::optional<std::string> const& lex_file
) -> std::function<void(std::uint32_t)> {
[[nodiscard]] auto
print_function(std::optional<std::string> const& map_file, std::optional<std::string> const& lex_file)
-> std::function<void(std::uint32_t)> {
if (map_file) {
return [loaded_map = pisa::io::read_string_vector(*map_file)](std::uint32_t term) {
std::cout << loaded_map.at(term) << ' ';
Expand Down