big-brain
big-brain copied to clipboard
Allow custom scorers to be created
Currently it isn't possible to create custom scorers as Score
and ScoreEnt
are pub(crate)
. This PR makes these pub
so that custom scorers can be built.
Ah good point, I was following SumOfScorers
as an example which accesses score.0
directly. I'll revert the change.
Are you open to PRs for other Picker / Scorer types? Or would you prefer they stay as user code? I've created a ProductOfScorers
and MaxScore
picker
I'm definitely open to other general-use compound scorers and pickers :)
Ok, I've updated the PR - as a bonus it made the PR 50% easier to review 🤣
I've spotted #48 which is the Picker I wanted to add. I'll create a separate PR with the compound scorer