category

# `score_ranker_common`

Shared predicates for score-based rankers that order candidates using precomputed item scores.

Availability:
`logtalk_load(ranking_protocols(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-04-25
Compilation flags:
`static`
Extends:
`public` ranker_common
Uses:
avltree
list
pairs
Remarks:
(none)
Inherited public predicates:
check_option/1 check_options/1 check_ranker/1 default_option/1 default_options/1 diagnostic/2 diagnostics/2 export_to_clauses/4 export_to_file/4 learn/2 learn/3 option/2 option/3 print_ranker/1 rank/3 ranker_options/2 scores/2 valid_option/1 valid_options/1 valid_ranker/1

## Public predicates

(no local declarations; see entity ancestors if any)

## Protected predicates

### `rank_by_scores/3`

Ranks candidates using precomputed `Item-Score` pairs while validating item existence and duplicate candidates.

Compilation flags:
`static`
Template:
`rank_by_scores(Scores,Candidates,Ranking)`
Mode and number of proofs:
`rank_by_scores(+list(pair),+list,-list)` - `one`

## Private predicates

(no local declarations; see entity ancestors if any)

## Operators

(none)