score

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoostBestResult added in v0.1.0

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