simrep

package
v0.0.0-...-5c30f4a Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildIndex

func BuildIndex(db *store.Store, opts *Opts, progFunc func(int, int)) (*sim.Index, error)

func EmitFooter

func EmitFooter(w io.Writer)

func EmitHeader

func EmitHeader(w io.Writer, opts *Opts)

func EmitMatches

func EmitMatches(w io.Writer, art *store.Article, matching []*store.Article, metrics []float64)

func FindMatches

func FindMatches(idx *sim.Index, db *store.Store, opts *Opts) (map[store.ArtID][]sim.DocMatch, error)

func Run

func Run(db1 *store.Store, db2 *store.Store, opts *Opts) error

Types

type Opts

type Opts struct {
	Verbose        bool
	MinWords       int
	NGramSize      int
	MatchThreshold float64
	IgnoreSameID   bool
	Lang           string
	//
	Dbug store.Logger
}

Jump to

Keyboard shortcuts

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