Documentation
¶
Overview ¶
Package scorer implements subtitle scoring based on release matching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is a configured scorer.
func (*Engine) Score ¶
func (e *Engine) Score(_ *api.VideoInfo, sub api.SubtitleInfo, matches api.MatchSet) (score, scoreNoHash int)
Score calculates the score for a subtitle against a video. The input matches struct is not modified.
Verifiable hash match returns the hash weight directly (typically 100). Otherwise, only release attribute keys contribute to the score. Non-verifiable hash adds the hash weight on top of release attributes.
Click to show internal directories.
Click to hide internal directories.