score

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoostBestResult

func BoostBestResult(nr *namerefs.NameRefs, nb bayes.Bayes)

BoostBestResult provides additional score for the best result in NameRefs.

func NewAnnot

func NewAnnot(annot string) annotation

Types

type Score

type Score interface {
	fmt.Stringer
	Calculate(*namerefs.NameRefs, title_matcher.TitleMatcher, bayes.Bayes) error
}

func New

func New(prec map[ScoreType]int) Score

type ScoreType

type ScoreType int
const (
	Year ScoreType = iota
	Annot
	RefTitle
	RefVolume
	RefPages
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL