trgm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUFFER_SIZE int = 3
)

Variables

This section is empty.

Functions

func HashPart

func HashPart(hash map[uint64]bool, source map[uint64]bool) float64

func HashSim

func HashSim(hash1 map[uint64]bool, hash2 map[uint64]bool) float64

func MakeTrgms

func MakeTrgms(txt string) map[uint64]bool

func Sim

func Sim(txt1 string, txt2 string) float64

func UsedPart

func UsedPart(txt string, source string) float64

Types

type SkipData

type SkipData map[string]bool

func (SkipData) Has

func (s SkipData) Has(val string) bool

type UintList

type UintList []uint64

func (UintList) Len

func (l UintList) Len() int

func (UintList) Less

func (l UintList) Less(i, j int) bool

func (UintList) Swap

func (l UintList) Swap(i, j int)

Jump to

Keyboard shortcuts

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