fingerprinter

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFingerprinter

func NewFingerprinter(opts ...Option) *fingerprinterImpl

Types

type Fingerprinter

type Fingerprinter interface {
	IsWord(word string) bool
	Fingerprint(input string) (fingerprint int64, tokens []string, level string, err error)
	TokenizeInput(input string) ([]string, string, error)
	Tokenize(input string) ([]string, string, error)
}

type Option added in v0.4.1

type Option func(*fingerprinterImpl)

func WithMaxTokens added in v0.4.1

func WithMaxTokens(maxlen int) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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