lcs

package
v0.0.0-...-d52e2b0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Score

func Score(docTokens, queryTokens []string) float64

Score calculate the scores for query inside the document using LCS length and its compactness.

Types

type Edit

type Edit struct {
	Op    EditOp
	Index int
	From  int
}

type EditOp

type EditOp uint8
const (
	Delete EditOp = iota
	Insert
)

Jump to

Keyboard shortcuts

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