feat(generation): select articles in three passes
This commit is contained in:
21
backend/internal/generation/mention_fakes_test.go
Normal file
21
backend/internal/generation/mention_fakes_test.go
Normal file
@ -0,0 +1,21 @@
|
||||
package generation
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/tradarr/backend/internal/models"
|
||||
)
|
||||
|
||||
// Historical fixture selectors now implement the binary mention port. Their
|
||||
// returned subset is the yes decision; their ordering cannot change chronology.
|
||||
func (r *contractRanker) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []Candidate) ([]Candidate, error) {
|
||||
return r.Rank(c, m, a, v)
|
||||
}
|
||||
func (r *ticket14LayaRanker) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []Candidate) ([]Candidate, error) {
|
||||
return r.Rank(c, m, a, v)
|
||||
}
|
||||
func (r ticket14DuplicateRanker) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []Candidate) ([]Candidate, error) {
|
||||
return r.Rank(c, m, a, v)
|
||||
}
|
||||
func (r *ticket4AssetRecorder) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []Candidate) ([]Candidate, error) {
|
||||
return r.Rank(c, m, a, v)
|
||||
}
|
||||
Reference in New Issue
Block a user